commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joakim Knudsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-205) Imaging (Apache Sanselan) produces "odd offsets" in (EXIF) metadata
Date Wed, 15 Nov 2017 22:27:00 GMT

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

Joakim Knudsen commented on IMAGING-205:
----------------------------------------

I've been seeing various sets of error messages (from ExifTool) when validating the images
run through the same (sample) code, and it seems the output depends on the input. Maybe that's
not surprising? What I mean is, when I started this bug report, the JPEG I was testing on
(20171030_24812.JPG -- attached) was taken by a Samsung Galaxy Note 8.0. The sample Sanselan
code (WriteExifMetadataExample, which sets Aperture and GPS tags) resulted in various odd
offsets, and some warnings on "non-standard count" on the GPS coordinates.

However -- and this is why I've been so confused -- JPEGs taken with my Sony Xperia Z5 Compact,
when run through the very same sample code, produce more severe (AFAIK) errors. Note the Maker
Notes error below -- this does not occur on the Samsung input file. I've added these two original
JPEGs, and their "copy_desktop" versions after Sanselan processing.

{noformat}
$ ./exiftool.exe -validate -warning -error -a DSC_5506_copy_desktop.JPG
Validate                        : 16 Warnings (14 minor)
Warning                         : [minor] Odd offset for IFD0 tag 0x011a
Warning                         : [minor] Odd offset for IFD0 tag 0x011b
Warning                         : [minor] Odd offset for ExifIFD tag 0x829a
Warning                         : [minor] Odd offset for ExifIFD tag 0x829d
Warning                         : [minor] Odd offset for ExifIFD tag 0x9201
Warning                         : [minor] Odd offset for ExifIFD tag 0x9202
Warning                         : [minor] Odd offset for ExifIFD tag 0x9204
Warning                         : [minor] Odd offset for ExifIFD tag 0x920a
Warning                         : [minor] Possibly incorrect maker notes offsets (fix by -628?)
Warning                         : [minor] Odd offset for ExifIFD tag 0x9290
Warning                         : [minor] Odd offset for ExifIFD tag 0x9292
Warning                         : [minor] Odd offset for ExifIFD tag 0xa404
Warning                         : Non-standard count (1) for GPS tag 0x0001 GPSLatitudeRef
Warning                         : Non-standard count (1) for GPS tag 0x0003 GPSLongitudeRef
Warning                         : [minor] Odd offset for IFD1 tag 0x011a
Warning                         : [minor] Odd offset for IFD1 tag 0x011b
{noformat}

{noformat}
$ ./exiftool.exe -validate -warning -error -a 20171030_214812_copy_desktop.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}


> 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
>            Assignee: Bruno P. Kinoshita
>            Priority: Critical
>         Attachments: 20171030_21481_COPY.jpg, Gaboxjellyfish-changedexifmetadata.jpg,
Gaboxjellyfish.jpg, after.html, before.html
>
>
> 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)

Mime
View raw message