[
https://issues.apache.org/jira/browse/IMAGING-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Damjan Jovanovic resolved IMAGING-87.
-------------------------------------
Resolution: Not A Problem
Imaging currently don't modify the EXIF GPS lat/long (or any other EXIF for
that matter) in-place, it has to write a new copy.
However, you can read the file contents into a byte array, and use the method
that takes a byte array, and specify the original file name as the file to
write to. This will overwrite the original file with the updated version
instead of generating a new file.
> [Sanselan] Writing new gps values to jpeg.
> -------------------------------------------
>
> Key: IMAGING-87
> URL: https://issues.apache.org/jira/browse/IMAGING-87
> Project: Commons Imaging
> Issue Type: Question
> Components: Format: JPEG
> Reporter: Piotr Czajka
> Labels: newbie
>
> Hello :)
> I want to edit GPS tag and save new GPS latitude and longitude to jpeg.
> I tried to use code from this example
> http://massapi.com/source/sanselan-0.97-incubator/src/test/java/org/apache/sanselan/sampleUsage/WriteExifMetadataExample.java.html
>
> Ok it works but it creates a new jpeg photo with new gps values.. but I would
> like to save new values to the same photo. How I can do this ?
> Generally I want to create application similar to Picasa (photo viewer +
> google maps) .. and in this case when I drag and drop marker on map I want to
> save new gps exif metadata to photo.. so according with this example it will
> be create new photo every time?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira