ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEFolderMView1ImageAdd CreateDate=EditDate bug ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Nov 19 2015 :  08:19:06  Show Profile  Reply
Hello,
i use follow Procedure:

Procedure TThumbnail_form.IEFolderMView1ImageAdd(Sender: TObject; idx: integer;
const sFilename: string; bFolder, bHiddenFile: boolean; iFileSizeBytes: Int64;
CreateDate, EditDate: TDateTime; var bAllow: boolean);
begin
if fromto_checkbox.Checked then
begin
if (createdate > To_Date.datetime) or
(createdate < From_Date.datetime) then bAllow:=false;

// for testing only
showmessage('Filename: '+ sfilename+ ' Createdate: '+datetimetostr(createdate)+' Editdate: '+datetimetostr(editdate));

end;

I use the above procedure to images between a certain period to show .
Unfortunately Craetedate and editdate here equal .
See Messages.
In the Folder View display , it is Ok .
What is wrong ?
Proberties IEFolderMView:






Thanks for help
Klaus
www.klausdoege.de

xequte

39108 Posts

Posted - Nov 19 2015 :  16:59:29  Show Profile  Reply
Hi Klaus

The discrepency here is that in the ImageAdd event the CreateDate is the file create date, whereas after loading a JPEG CreateDate is set to the EXIF DateTimeOriginal value for greater accuracy.

That should probably be optional...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Nov 20 2015 :  08:11:09  Show Profile  Reply
Hi Nigel,
how can i read the exifdate without new load the file
and then check if xxx.IOParams.EXIF_HasEXIFData

Klaus
www.klausdoege.de
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 21 2015 :  08:19:54  Show Profile  Reply
Instead of using IO.LoadFromFile try IO.ParamsFromFile, then get the EXIF value from IO.Params

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Nov 22 2015 :  15:30:41  Show Profile  Reply
Hi Bill,
yes i have do that, IO.Paramsfromfile is OK

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: