From dev-return-7763-apmail-tika-dev-archive=tika.apache.org@tika.apache.org Wed May 9 14:26:10 2012 Return-Path: X-Original-To: apmail-tika-dev-archive@www.apache.org Delivered-To: apmail-tika-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBB109FA5 for ; Wed, 9 May 2012 14:26:10 +0000 (UTC) Received: (qmail 59099 invoked by uid 500); 9 May 2012 14:26:10 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 59068 invoked by uid 500); 9 May 2012 14:26:10 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 59060 invoked by uid 99); 9 May 2012 14:26:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:26:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 14:26:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4A7B843C9ED for ; Wed, 9 May 2012 14:25:49 +0000 (UTC) Date: Wed, 9 May 2012 14:25:49 +0000 (UTC) From: "Nick Burch (JIRA)" To: dev@tika.apache.org Message-ID: <1637901143.44418.1336573549306.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <824201835.38924.1336488829180.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TIKA-915) Image geodata being rounded to integers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TIKA-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271443#comment-13271443 ] Nick Burch commented on TIKA-915: --------------------------------- While I can see some users wanting to call out to exiftool to do the metadata parsing, many will want a pure Java solution. I believe the Drew Noakes library is the best pure Java one available under a suitable license, and so we'll need to stick with it. If you have some time, would you be able to look into doing a bug report to Drew Noakes (ideally with a unit test, and maybe even a patch!) Also, the small image didn't come through in your patch (binary files normally won't), any chance you could attach it to the issue? > Image geodata being rounded to integers > --------------------------------------- > > Key: TIKA-915 > URL: https://issues.apache.org/jira/browse/TIKA-915 > Project: Tika > Issue Type: Bug > Components: parser > Affects Versions: 1.2 > Reporter: Nick Burch > Attachments: problem_jpeg_geo_test.diff, testJPEG_GEO_2.jpg > > > This was initially reported as an Alfresco issue, https://issues.alfresco.com/jira/browse/ALF-13004, but is actually a Tika problem. It seems that for some images, the geo metadata is being incorrectly rounded to an integer: > $ tika --metadata 2012-02-19\ 16.43.29.jpg | grep --text geo > geo:lat: 51.0 > geo:long: -1.0 > The image was actually taken at (as extracted by exiftool) > $ exiftool 2012-02-19\ 16.43.29.jpg | grep GPS > .... > GPS Altitude : 295 m Above Sea Level > GPS Date/Time : 2012:02:20 16:44:22Z > GPS Latitude : 51 deg 34' 32.74" N > GPS Longitude : 1 deg 34' 4.39" W > GPS Position : 51 deg 34' 32.74" N, 1 deg 34' 4.39" W > The sample file for this example is available at . We do have the OK to use the photo in a test suite, but it's possibly a bit big as-is so we may need to resize it whilst preserving the exif data for a unit test. -- 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