You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (JIRA)" <ji...@apache.org> on 2017/11/14 08:15:00 UTC

[jira] [Commented] (IMAGING-205) Imaging (Apache Sanselan) produces "odd offsets" in (EXIF) metadata

    [ https://issues.apache.org/jira/browse/IMAGING-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16251061#comment-16251061 ] 

Bruno P. Kinoshita commented on IMAGING-205:
--------------------------------------------

Hi [~joakimk],

Thanks for the detailed report, and the link to the forum discussion. Comparing the output of the exiftool's htmldump, from a normal JPEG and another image created with WriteExifMetadataExample.changeExifMetadata (not quite the one you used, but from Commons Imaging tests), I can confirm there are odd offsets and also markers that were changed.

Going to add a sample before, and another after. Plus the code, and the output HTML files for posterity and for working on this issue.

> Imaging (Apache Sanselan) produces "odd offsets" in (EXIF) metadata
> -------------------------------------------------------------------
>
>                 Key: IMAGING-205
>                 URL: https://issues.apache.org/jira/browse/IMAGING-205
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: imaging.*
>            Reporter: Joakim Knudsen
>            Priority: Critical
>         Attachments: 20171030_21481_COPY.jpg
>
>
> 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|http://svn.apache.org/repos/asf/commons/proper/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/WriteExifMetadataExample.java?p=820841] on an image, which updates the Apterture and GPS tags, the resulting image fails to validate (through Phil Harvey's [ExifTool software|https://sno.phy.queensu.ca/~phil/exiftool/]):
> {noformat}
> > 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
> {noformat}
> 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? :-)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)