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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [IEvolution] Exif_UserComment does not save

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MattOV Posted - Jun 13 2012 : 07:30:45
I Have been using Ievolution to edit Exif data and have no problems with any of the tags except the UserComemnt tag which never saves after I add string data to it. IS there any limitations to what how data can be entered?

thanks
matt
5   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jun 18 2012 : 22:28:14
Thank you Bill, documentation updated!
Actually it is possible to use UNICODE also in previous Delphi versions, because EXIF_UserCommentCode is WideString.
MattOV Posted - Jun 18 2012 : 17:19:58
Thanks for the clarification Fabrizio.

And thanks William for the follow up too :)
w2m Posted - Jun 18 2012 : 07:56:31
Fabrizio, Although you "hinted" about this in the help file, the help file was not clear about this. I'd add your example to your help file.

TIOParams.EXIF_UserComment


Declaration

property EXIF_UserComment:WideString


Description

EXIF_UserComment is a tag to write keywords or comments on the image besides those in EXIF_ImageDescription, and without the character code limitations of the EXIF_ImageDescription tag.
The character code is specified by the EXIF_UserCommentCode property.

It is necessary to specify how the string will be coded (ASCII or Unicode) when using the EXIF_UserCommentCode. For Delphi 2010 or higher you should use ImageEnView1.IO.Params.EXIF_UserCommentCode := IEEXIFUSERCOMMENTCODE_UNICODE as shown in the example below:

Example:
ImageEnView1.IO.LoadFromFile('input.jpg');
ImageEnView1.IO.Params.EXIF_UserComment := 'Hello World!';
ImageEnView1.IO.Params.EXIF_UserCommentCode := IEEXIFUSERCOMMENTCODE_UNICODE;
ImageEnView1.IO.Params.EXIF_HasEXIFData := true;
ImageEnView1.IO.SaveToFileTIFF('test.tiff');
 ...and read back....
ImageEnView1.IO.LoadFromFileTIFF('test.tiff');
ShowMessage( ImageEnView1.IO.Params.EXIF_UserComment );

The IEEXIFUSERCOMMENTCODE_UNICODE is defined in the imageenio unit.

William Miller
fab Posted - Jun 18 2012 : 01:30:22
It is necessary to specify how the string will be coded (ASCII or Unicode) using EXIF_UserCommentCode. Example:
ImageEnView1.IO.LoadFromFile('input.jpg');
ImageEnView1.IO.Params.EXIF_UserComment := 'Hello World!';
ImageEnView1.IO.Params.EXIF_UserCommentCode := IEEXIFUSERCOMMENTCODE_UNICODE;
ImageEnView1.IO.Params.EXIF_HasEXIFData := true;
ImageEnView1.IO.SaveToFileTIFF('test.tiff');

...and read back....
ImageEnView1.IO.LoadFromFileTIFF('test.tiff');
ShowMessage( ImageEnView1.IO.Params.EXIF_UserComment );


IEEXIFUSERCOMMENTCODE_UNICODE is defined in imageenio unit.
w2m Posted - Jun 13 2012 : 11:22:16
I tried the EXIF demo and found the EXIF_UserComment was not saved as well... The XPComment was saved however.

William Miller