Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 96461 invoked from network); 15 Mar 2007 13:06:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 13:06:32 -0000 Received: (qmail 9739 invoked by uid 500); 15 Mar 2007 13:06:40 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 9709 invoked by uid 500); 15 Mar 2007 13:06:40 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 9634 invoked by uid 99); 15 Mar 2007 13:06:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 06:06:40 -0700 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, 15 Mar 2007 06:06:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68A70714087 for ; Thu, 15 Mar 2007 06:06:10 -0700 (PDT) Message-ID: <1898130.1173963970426.JavaMail.jira@brutus> Date: Thu, 15 Mar 2007 06:06:10 -0700 (PDT) From: "Evgeniya Maenkova (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3143) javax.imageio.ImageIO.write doesn't work with png-images In-Reply-To: <29104080.1170950765861.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/HARMONY-3143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481141 ] Evgeniya Maenkova commented on HARMONY-3143: -------------------------------------------- Alexey, Nikolay, all works fine. let's close this JIRA. Thanks. > javax.imageio.ImageIO.write doesn't work with png-images > -------------------------------------------------------- > > Key: HARMONY-3143 > URL: https://issues.apache.org/jira/browse/HARMONY-3143 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Evgeniya Maenkova > Assigned To: Alexey Petrenko > Attachments: golden_0400.JPG, ImageTest.java, pngencoder.patch > > > 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.