Re: Is there another way to write a BufferedImage ?
Chris Pratt <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
I'd bet that if you write out the results of ImageIO.getReaderFormatNames and ImageIO.getWriterFormatNames you'll find that it can read GIF images, but not write them.
(*Chris*)
Original Message -----------------------
Has anyone else had a problem writing a gif image from a BufferedImage ?
This works:
ImageIO.write(myBufferedImage, "JPG", new File("/path/to/image.jpg"));
This does not:
ImageIO.write(myBufferedImage, "gif", new File("/path/to/image.gif"));
I know the gif image in the BufferedImage is good as it gives me good values
when I do a getWidth() or getHeight() but will write an empty file when the
above is run.
Hope this was not too far off subject, just a follow up question to the one
posed earlier.
Thanks - Scott
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html