You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/03/15 12:38:10 UTC

[jira] Resolved: (HARMONY-3143) javax.imageio.ImageIO.write doesn't work with png-images

     [ https://issues.apache.org/jira/browse/HARMONY-3143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-3143.
--------------------------------------

    Resolution: Fixed

The patch has been applied.
Please verify.

> 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.