Example for adding or modifying gps data without discarding other EXIF data
hypersonic64 opened this issue · comments
Hi,
I'd like to use PEL for adding or editing existing GPS data in JPEG files.
I tried the code in the example gps.php and it works like it's promised in the comment: It writes GPS data to the JPEG but discards any other existing EXIF data in the file.
But it's important for me that the other EXIF data is left untouched.
So, is there any example how to do this?
Do I need to read all EXIF data first and write it back to the file or is it possible to just modify the GPS part?
And does it make any difference if the JPEG file already contains GPS data?
Thanks a lot
Hyper
Hi again,
seems there was an error in my test JPEG. It didn't contain any EXIF Data.
I tried the example gps.php with another JPG file and everything worked fine. The contained EXIF data was not modified or deleted.
Cheers
Hyper