Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F532968B for ; Tue, 20 Mar 2012 12:58:03 +0000 (UTC) Received: (qmail 62841 invoked by uid 500); 20 Mar 2012 12:58:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 62671 invoked by uid 500); 20 Mar 2012 12:58:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 62439 invoked by uid 99); 20 Mar 2012 12:58:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2012 12:58:02 +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; Tue, 20 Mar 2012 12:57:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4EB6553FDE for ; Tue, 20 Mar 2012 12:57:38 +0000 (UTC) Date: Tue, 20 Mar 2012 12:57:38 +0000 (UTC) From: "Tars Joris (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <223960826.36230.1332248258323.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <710288135.36217.1332248018153.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SANSELAN-70) Incorrect PhysicalWidthDpi for JPEG image with resolution specified in dots per millimeter 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/SANSELAN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tars Joris updated SANSELAN-70: ------------------------------- Attachment: Main.java Test code. > Incorrect PhysicalWidthDpi for JPEG image with resolution specified in dots per millimeter > ------------------------------------------------------------------------------------------ > > Key: SANSELAN-70 > URL: https://issues.apache.org/jira/browse/SANSELAN-70 > Project: Commons Sanselan > Issue Type: Bug > Components: Format: JPEG > Affects Versions: 0.97 > Environment: N/A > Reporter: Tars Joris > Labels: patch > Attachments: Main.java, example_ppi.jpg, example_ppmm.jpg, jpeg-dpi.patch.txt > > > The value of physical with DPI is incorrect for JPEG images, which express their resolution in dots per millimeter. > Two images are attached: > - example_ppi.jpg: Normal image, with resolution specified in dots per inch (72 pixels/in) > - example_ppmm.jpg: Same image, but with resolution specified in dots per millimeter (2.8 pixels/mm) > When running the attached code, the output is > {code} > example_ppi.jpg > getPhysicalWidthDpi: 72 > getPhysicalHeightDpi: 72 > example_ppmm.jpg > getPhysicalWidthDpi: 11 > getPhysicalHeightDpi: 71 > {code} > While you'd expect the value 71 for getPhysicalWidthDpi for the second image. -- 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