Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-205

Imaging (Apache Sanselan) produces "odd offsets" in (EXIF) metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • imaging.*
    • None

    Description

      I'm using the "last stable version" of Apache Sanselan 0.97 in an Android project (app). I have not upgraded to Commons Imaging yet, since the website says there is no stable release yet. Meanwhile, there are bugs in Sanselan.

      If I run the sample code method WriteExifMetadataExample.changeExifMetadata on an image, which updates the Apterture and GPS tags, the resulting image fails to validate (through Phil Harvey's ExifTool software):

      > exiftool.exe -validate -error -warning -a "..\20171030_21481_COPY.jpg"
      Validate                        : 19 Warnings (17 minor)
      Warning                         : [minor] Odd offset for IFD0 tag 0x010f
      Warning                         : [minor] Odd offset for IFD0 tag 0x011a
      Warning                         : [minor] Odd offset for IFD0 tag 0x011b
      Warning                         : [minor] Odd offset for IFD0 tag 0x0131
      Warning                         : [minor] Odd offset for IFD0 tag 0x0132
      Warning                         : [minor] Odd offset for ExifIFD tag 0x829a
      Warning                         : [minor] Odd offset for ExifIFD tag 0x829d
      Warning                         : [minor] Odd offset for ExifIFD tag 0x9003
      Warning                         : [minor] Odd offset for ExifIFD tag 0x9004
      Warning                         : [minor] Odd offset for ExifIFD tag 0x9202
      Warning                         : [minor] Odd offset for ExifIFD tag 0x9205
      Warning                         : [minor] Odd offset for ExifIFD tag 0x920a
      Warning                         : [minor] Odd offset for ExifIFD tag 0x9286
      Warning                         : Non-standard count (1) for GPS tag 0x0001 GPSLatitudeRef
      Warning                         : [minor] Odd offset for GPS tag 0x0002
      Warning                         : Non-standard count (1) for GPS tag 0x0003 GPSLongitudeRef
      Warning                         : [minor] Odd offset for GPS tag 0x0004
      Warning                         : [minor] Odd offset for IFD1 tag 0x011a
      Warning                         : [minor] Odd offset for IFD1 tag 0x011b
      

      I need some advice on how to proceed here. Since Sanselan does not appear to do what it should (even on very basic metadata editing), am I correct to assume that the current version of Commons Imaging does a better job?

      Attachments

        1. 20171030_21481_COPY.jpg
          937 kB
          Joakim Knudsen
        2. 20171030_214812_copy_desktop.JPG
          937 kB
          Joakim Knudsen
        3. 20171030_214812.jpg
          937 kB
          Joakim Knudsen
        4. after.html
          46 kB
          Bruno P. Kinoshita
        5. before.html
          44 kB
          Bruno P. Kinoshita
        6. DSC_3338_imaging_205_UC.JPG
          2.67 MB
          Joakim Knudsen
        7. DSC_3338_imaging_205.JPG
          2.67 MB
          Joakim Knudsen
        8. DSC_3338.JPG
          2.67 MB
          Joakim Knudsen
        9. DSC_5506_copy_desktop.JPG
          2.45 MB
          Joakim Knudsen
        10. DSC_5506.JPG
          2.45 MB
          Joakim Knudsen
        11. Gaboxjellyfish.jpg
          3.17 MB
          Bruno P. Kinoshita
        12. Gaboxjellyfish-changedexifmetadata.jpg
          3.17 MB
          Bruno P. Kinoshita
        13. Samsung Note 8 Android.jpg
          1.11 MB
          Joakim Knudsen

        Activity

          People

            kinow Bruno P. Kinoshita
            joakimk Joakim Knudsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: