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
 InjectJpegEXIF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

arkipix

Denmark
16 Posts

Posted - Aug 23 2012 :  00:39:06  Show Profile  Reply
These lines did work until...

DateSeparator := ':';
ShortDateFormat :='YYYY:MM:DD';
ImageEnV1 := TImageEnView.Create(Self);
...
Exif_DateTimeOriginal := DateTimetoStr(Date);//'2010:01:01 01:01:00';
EX := ImageEnV1.io.InjectJpegEXIF(BilledNavn);
The result is:
DateTimeOriginal: Saturday, 30. December, 1899 * 12:00:00 AM
DateTimeDigitized: Tuesday, 21. August, 2012 * 12:30:36 PM
Not a correction af 6 hours back. EX is true.
I use it for correction of wrong cameratime.
Why?
Regards
Peter

xequte

38611 Posts

Posted - Aug 23 2012 :  02:07:56  Show Profile  Reply
Hi Peter

Rather than use that date method can you try:

EXIF_DateTimeOriginal := DateTimeToEXIFDate(StrToDateTime(value));

DateTimeToEXIFDate() is defined in iexEXIFRoutines.pas

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

arkipix

Denmark
16 Posts

Posted - Aug 25 2012 :  01:05:07  Show Profile  Reply
Sorry Nigel
No change, same result.
Regards
Peter
Go to Top of Page

xequte

38611 Posts

Posted - Aug 26 2012 :  02:30:39  Show Profile  Reply
Hi Peter

Please display the value of EXIF_DateTimeOriginal after setting it and after loading it, i.e.:

EXIF_DateTimeOriginal := DateTimeToEXIFDate(NewDate);
ShowMessage(EXIF_DateTimeOriginal);
EX := ImageEnV1.io.InjectJpegEXIF(BilledNavn);

Load the image again using your normal method then call:
ShowMessage(EXIF_DateTimeOriginal);


What are the values at these points?

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

xequte

38611 Posts

Posted - Aug 27 2012 :  03:11:56  Show Profile  Reply
Note: DateTimeToEXIFDate() is no longer required.

Just use:

EXIF_DateTimeOriginal2 := value;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: