abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ugo Cei (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ABDERA-36) javax.imageio.ImageIO.write doesn't work with png-images
Date Thu, 08 Feb 2007 16:06:06 GMT

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


Mime
View raw message