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
 How to read and write a few values from EXIF?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Jun 18 2020 :  06:17:34  Show Profile  Reply
Hello,

I have a need to write following EXIF data to the files saved from my software:
  • User Comment
  • Date and Time
  • Description
  • Software
  • Image Description


I am trying to use Helpers in iexMetaHelpers.

In the same way I also want to read only these items (stated above) from EXIF of an image when it is opened for editing.

I checked the demo EXIF but it is reading everything to a grid and writing from grid. I don't want to read all the info and write all the info.

How can I do this?

TIA


Yogi Yang

xequte

38613 Posts

Posted - Jun 18 2020 :  20:21:48  Show Profile  Reply
Hi Yogi

You can use:

// Update the GPS EXIF data in a file
io := TImageEnIO.create(nil);
try
  io.ParamsFromFile( FilenameStr );

  io.Params.EXIF_GPSLatitude  := GPSLatitudeFloat;
  io.Params.EXIF_GPSLongitude := GPSLongitudeFloat;
  io.Params.EXIF_GPSVersionID := GPS_Version_ID;

  io.InjectJpegEXIF( FilenameStr );
finally
  io.Free;
end;


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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jun 19 2020 :  01:08:03  Show Profile  Reply
Hello,

Thanks for the tip. I know that part but as I said previously...
 
I am trying to use Helpers in iexMetaHelpers.

The reason why I want to use iexMetaHelpers is because I have observed that there are some attributes which are not available in io.Params.EXIF*

TIA


Yogi Yang
Go to Top of Page

xequte

38613 Posts

Posted - Jun 20 2020 :  03:53:02  Show Profile  Reply
Hi Yogi

The method I outline above does not prevent you from using the extra TIOParamsHelper.EXIF_* properties in iexMetaHelpers.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Jun 21 2020 :  03:46:59  Show Profile  Reply
Thanks Nigel.
I will try that.


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: