From sanselan-dev-return-274-apmail-incubator-sanselan-dev-archive=incubator.apache.org@incubator.apache.org Sun Aug 03 21:44:45 2008 Return-Path: Delivered-To: apmail-incubator-sanselan-dev-archive@locus.apache.org Received: (qmail 26052 invoked from network); 3 Aug 2008 21:44:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2008 21:44:45 -0000 Received: (qmail 88443 invoked by uid 500); 3 Aug 2008 21:44:44 -0000 Delivered-To: apmail-incubator-sanselan-dev-archive@incubator.apache.org Received: (qmail 88424 invoked by uid 500); 3 Aug 2008 21:44:44 -0000 Mailing-List: contact sanselan-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sanselan-dev@incubator.apache.org Delivered-To: mailing list sanselan-dev@incubator.apache.org Received: (qmail 88408 invoked by uid 99); 3 Aug 2008 21:44:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 14:44:44 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 21:43:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F01E234C18A for ; Sun, 3 Aug 2008 14:43:44 -0700 (PDT) Message-ID: <1019548864.1217799824243.JavaMail.jira@brutus> Date: Sun, 3 Aug 2008 14:43:44 -0700 (PDT) From: "Kevin Theisen (JIRA)" To: sanselan-dev@incubator.apache.org Subject: [jira] Updated: (SANSELAN-9) Loading Black and White PNGs produces darker images. In-Reply-To: <2079812252.1217795624238.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SANSELAN-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Theisen updated SANSELAN-9: --------------------------------- Attachment: testImageNoAlpha.png testImage.png PNGDarker.png After further testing, this problem occurs on Windows as well. However, I did discover that only images WITHOUT alpha experience this problem. I am uploading the original darkening demonstration as well as two images I created, testImage.png and testImageNoAlpha.png. I release these images (testImage.png and testImageNoAlpha.png) to the public. If you read and write testImage.png, you will notice no change, which reading and writing testImageNoAlpha.png will experience the mentioned darkening. Is there a way to specify that a created PNG should always have transparency enabled? > Loading Black and White PNGs produces darker images. > ---------------------------------------------------- > > Key: SANSELAN-9 > URL: https://issues.apache.org/jira/browse/SANSELAN-9 > Project: Sanselan > Issue Type: Bug > Affects Versions: 0.94-incubator > Environment: Mac OSX 10.5+, Java 1.5+, Sanselan 0.94 > Reporter: Kevin Theisen > Attachments: PNGDarker.png, testImage.png, testImageNoAlpha.png > > > When saving and loading pngs with Sanselan, black and white images get > darker with each save and load. All images are held in > memory as BufferedImages (ARGB). Have you ever seen this weird behavior > before or how I may fix it? > The affected images may be all PNGs, but I see this effect happening in images that contain mostly black and white pixels. The image I use to demonstrate this problem is from a wikipedia page of Linus Pauling: http://en.wikipedia.org/wiki/Linus_Pauling > The image basically goes to black after saving and loading 3/4 times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.