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 6B6059C89 for ; Sun, 15 Apr 2012 22:47:38 +0000 (UTC) Received: (qmail 97173 invoked by uid 500); 15 Apr 2012 22:47:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97093 invoked by uid 500); 15 Apr 2012 22:47:38 -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 97083 invoked by uid 99); 15 Apr 2012 22:47:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2012 22:47:38 +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; Sun, 15 Apr 2012 22:47:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CBEE836C7C9 for ; Sun, 15 Apr 2012 22:47:16 +0000 (UTC) Date: Sun, 15 Apr 2012 22:47:16 +0000 (UTC) From: "VVD (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <815170086.27161.1334530036880.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1165467459.4139.1334000000409.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SANSELAN-72) Incorrect reading TIFF file 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-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254446#comment-13254446 ] VVD commented on SANSELAN-72: ----------------------------- Tested - both fixed now! Thanks! > Incorrect reading TIFF file > --------------------------- > > Key: SANSELAN-72 > URL: https://issues.apache.org/jira/browse/SANSELAN-72 > Project: Commons Sanselan > Issue Type: Bug > Components: Format: PNG, Format: TIFF > Affects Versions: 1.x > Reporter: VVD > Fix For: 1.0 > > Attachments: in.png, in.tif, out-png-IM.png, out-tif.png > > > I found 2 bugs. > I have tif file in.tif. > 1. After convert it to png (bmp, tga, etc) by Sanselan it getting horizontal lines. > {code} > Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.tif")), new File("out-tif.png"), ImageFormat.IMAGE_FORMAT_PNG, null); > {code} > gwenview, eog, kolourpaint, gimp, etc show in.tif without lines and out.png with lines. > For example 1st line at ~860 points from top and in full width of picture. > 2. After convert it to png by convert utility from ImageMagic, and then convert it to png (bmp, tga, etc) by Sanselan it became "gray" - all white pixels become gray. > {code}$ convert in.tif in.png{code} > {code} > Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.png")), new File("out-png-IM.png"), ImageFormat.IMAGE_FORMAT_PNG, null); > {code} > gwenview, eog, kolourpaint, gimp, etc show in.png as black and white, but out-png-IM.png as black and gray. > I'll attach all 4 files. -- 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