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
 Remove GPS Exif data
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wezzend

4 Posts

Posted - Jul 04 2012 :  07:29:59  Show Profile  Reply

Hi,

Is it possible to remove all GPS-related EXIF data from a jpg image? All other EXIF data could remain untouched and all GPS-related data could completely removed.

Thanks in advance.

fab

1310 Posts

Posted - Jul 04 2012 :  08:09:43  Show Profile  Reply
Hi,
set EXIF_GPSVersionID='' and save back the image. Example:

ImageEnView1.IO.LoadFromFile('input.jpg');
ImageEnView1.IO.Params.EXIF_GPSVersionID := '';
ImageEnView1.Io.SaveToFile('output.jpg');
Go to Top of Page

wezzend

4 Posts

Posted - Jul 05 2012 :  06:44:57  Show Profile  Reply
Hi,

Thanks. It does exactly what I need.
Does it intentional feature (I mean setting EXIF_GPSVersionID := '' deletes all GPS-related data) or it is accidental feature?
I'm asking because other GPS fields (e.g. EXIF_GPSLatitudeDegrees, EXIF_GPSLongitudeDegrees) did not touch just EXIF_GPSVersionID but all of them deleted.

Thanks.
Go to Top of Page

fab

1310 Posts

Posted - Jul 05 2012 :  10:53:13  Show Profile  Reply
This is intentional. Because GPSVersionID is necessary, when it is empty ImageEn doesn't save back other GPS tags.
Go to Top of Page

wezzend

4 Posts

Posted - Jul 05 2012 :  11:56:37  Show Profile  Reply
Great, thanks.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: