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
 Reading XMP data

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
jrpcguru Posted - Apr 20 2020 : 19:26:29
I have found something weird when trying to read XMP data, specifically aux:SerialNumber.

I have used both options for getting the serial number:
IO.Params.XMP_AsStr[ XMP_Aux_SerialNumber];
This loads the serial number but does not yield an error for no serial, as documented.

IO.Params.Dict.GetString('aux:SerialNumber',true));
This loads the serial number but generates an error if no rating exists, as documented.

Both share the same problem:

I've attached three sample files. The Olympus.Small.JPG reports a serial number of 'BHG210742' which is correct. However if I load DMC-G7.small.jpg, it too reports that same serial number. This happens in my program and in your demo program if I use the setting for Standard ImageEn Properties. If either program opens a file from a G9 camera such as P1011263.small.jpg that seems to clear the problem and then DMC-G7 correctly reports no serial number.





I have tried the following code to clear the ImageEnView object between loading files:

Image1.ClearAll;
Image1.IO.Params.ResetInfo();//clear all metadata
//also Image1.IO.Params.ResetInfo([]);//clear all metadata
Image1.IO.Params.ResetInfo([ierXMP]);//clear all XMP metadata
//also Image1.IO.Params.XMP_Info := 'zzzzzzzzzz';
Image1.Update;

Nothing clears the XMP data except loading a G9 camera file.
The Helpers in iexMetaHelpers setting in your demo program correctly handles reading the serial number.




J.R.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 21 2020 : 21:23:47
Hi JR

We'll have a fix for this in the next release.

In the meantime, please call:

ImageEnView1.IO.Params.Dict.Clear();

Nigel
Xequte Software
www.imageen.com