commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1397808 - in /commons/proper/imaging/trunk/src: changes/changes.xml main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java
Date Sat, 13 Oct 2012 10:11:17 GMT
Author: damjan
Date: Sat Oct 13 10:11:16 2012
New Revision: 1397808

URL: http://svn.apache.org/viewvc?rev=1397808&view=rev
Log:
Fix setExifGPSTag().

Submitted by: Herve M. <hmarmy at gmail dot com>
Jira issue key: IMAGING-92


Modified:
    commons/proper/imaging/trunk/src/changes/changes.xml
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java

Modified: commons/proper/imaging/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/changes/changes.xml?rev=1397808&r1=1397807&r2=1397808&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/changes/changes.xml (original)
+++ commons/proper/imaging/trunk/src/changes/changes.xml Sat Oct 13 10:11:16 2012
@@ -230,6 +230,9 @@ The <action> type attribute can be add,u
       <action issue="IMAGING-89" dev="damjan" type="add">
         Detect the YCCK color space/type in JPEG files' APP14 segment.
       </action>
+      <action issue="IMAGING-92" dev="damjan" type="fix" due-to="hmarmy">
+        Issue trying to update GPS metadata info in a JPG.
+      </action>
     </release>
     
   </body>

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java?rev=1397808&r1=1397807&r2=1397808&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputSet.java
Sat Oct 13 10:11:16 2012
@@ -144,11 +144,11 @@ public final class TiffOutputSet impleme
         latitude = Math.abs(latitude);
 
         gpsDirectory.removeField(GpsTagConstants.GPS_TAG_GPS_LONGITUDE_REF);
-        gpsDirectory.add(GpsTagConstants.GPS_TAG_GPS_DEST_LONGITUDE_REF,
+        gpsDirectory.add(GpsTagConstants.GPS_TAG_GPS_LONGITUDE_REF,
                 longitudeRef);
 
         gpsDirectory.removeField(GpsTagConstants.GPS_TAG_GPS_LATITUDE_REF);
-        gpsDirectory.add(GpsTagConstants.GPS_TAG_GPS_DEST_LATITUDE_REF,
+        gpsDirectory.add(GpsTagConstants.GPS_TAG_GPS_LATITUDE_REF,
                 latitudeRef);
 
         {
@@ -163,7 +163,7 @@ public final class TiffOutputSet impleme
 
             gpsDirectory.removeField(GpsTagConstants.GPS_TAG_GPS_LONGITUDE);
             gpsDirectory
-                    .add(GpsTagConstants.GPS_TAG_GPS_DEST_LONGITUDE,
+                    .add(GpsTagConstants.GPS_TAG_GPS_LONGITUDE,
                             RationalNumberUtilities
                                     .getRationalNumber(longitudeDegrees),
                             RationalNumberUtilities



Mime
View raw message