How do I remove only location EXIF data from an image and keep the rest of the EXIF data?
Is there a way to do this in PHP?
Try ImageMagick:
http://learntogoogleit.com/post/62825502754/removing-exif-data-with-imagemagick
Or this topic:
Please read my question again. I am not asking how to strip all EXIF data from an image. I am asking how to strip only the GPS EXIF data from an image.
I am new to using Imagemagick in PHP.
I am using a tablet and searching for specific solutions is not easy.
The PHP exif_read_data() should help in your search and should imagine the extracted location data will be required before writing modified GPS location info.
When I am back on my desktop I will try searching again unless you find and post a solution.
http://coderwebtrix.com/how-to-get-latitude-and-longitude-from-image-in-php/#.WrW2qVoxWf0
Imagemagick is not an EXIF editing tool; it can read but not write. The normal recommendation is to use the EXIFTOOL software. I have never tried but assume you use it as an external program or search for a php implementation online.
Searching the web there was a PEL library but it may have fallen by the wayside or you may be able to use jhead.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.