Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 47508 invoked from network); 8 Feb 2007 16:06:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 16:06:28 -0000 Received: (qmail 5035 invoked by uid 500); 8 Feb 2007 16:06:35 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 4997 invoked by uid 500); 8 Feb 2007 16:06:34 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 4983 invoked by uid 99); 8 Feb 2007 16:06:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 08:06:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 08:06:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6965341095A for ; Thu, 8 Feb 2007 08:06:06 -0800 (PST) Message-ID: <581928.1170950766428.JavaMail.jira@brutus> Date: Thu, 8 Feb 2007 08:06:06 -0800 (PST) From: "Ugo Cei (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Commented: (ABDERA-36) javax.imageio.ImageIO.write doesn't work with png-images In-Reply-To: <26752803.1170950286229.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/ABDERA-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471381 ] Ugo Cei commented on ABDERA-36: ------------------------------- Nice picture anyway ;) > javax.imageio.ImageIO.write doesn't work with png-images > -------------------------------------------------------- > > Key: ABDERA-36 > URL: https://issues.apache.org/jira/browse/ABDERA-36 > Project: Abdera > Issue Type: Bug > Reporter: Evgeniya Maenkova > Attachments: golden_0400.JPG, ImageTest.java > > > The test shows this (to be attached). > import java.awt.image.BufferedImage; > import java.io.File; > import java.io.FileInputStream; > import java.io.FileOutputStream; > import javax.imageio.ImageIO; > public class ImageTest { > public static void main(String[] args)throws Exception { > BufferedImage image = ImageIO.read(new FileInputStream("golden_0400.JPG")); > ImageIO.write(image, "png", new FileOutputStream("output.png")); > ImageIO.write(image, "jpeg", new FileOutputStream("output.jpeg")); > System.out.println("output.png size: " + (new File("output.png").length())); > System.out.println("output.jpeg size: " + (new File("output.jpeg").length())); > } > } > DRL output: > output.png size: 0 > output.jpeg size: 115615 > RI output: > output.png size: 1265948 > output.jpeg size: 114619 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.