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
 Manipulating metadata of image file w. unknown ext

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
PeterPanino Posted - Jun 27 2020 : 17:35:12
I am loading an image file into an ImageEnView. That image has an unknown file extension (e.g. .MyUnknownExt). So ImageEnView must detect itself what real image type the file is (.png or .jpg or .gif etc.).

Then ImageEnView mus get the comment metadata string from that image file. Then ImageEnView must MODIFY the found comment metadata string or create a new one. Then ImageEnView must save the file using the same .MyUnknownExt file extension but maintaining the same image file type (.png or .jpg or .gif etc.).

How can I do that?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 28 2020 : 16:23:46
Hi Peter

Different files have different meta-data properties.

For JPEG and TIFF:
EXIF Comment: https://www.imageen.com/help/TIOParams.EXIF_XPComment.html
XMP Description: https://www.imageen.com/help/TIOParams.XMP_Info.html
IPTC Description: https://www.imageen.com/help/TIOParams.IPTC_Photoshop.html

For GIF:
GIF Comments Field: https://www.imageen.com/help/TIOParams.GIF_Comments.html

For PNG:
Text Fields: https://www.imageen.com/help/TIOParams.PNG_TextKeys.html

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Jun 28 2020 : 12:17:54
Nigel, thanks for the quick answer. But the more important part of my question was: How to get/set the METADATA comment from/to .png, .jpg, .gif, etc.?
xequte Posted - Jun 28 2020 : 03:04:39
Hi Peter

If you use LoadFromFileAuto ImageEn will only use the file content to determine what type of image it is (ignore the extension):

https://www.imageen.com/help/TImageEnIO.LoadFromFileAuto.html

You can also use the global method FindFileFormat to determine the file type:

https://www.imageen.com/help/FindFileFormat.html

Nigel
Xequte Software
www.imageen.com