convert images using java imageIO
Hi all,
I learned how to use java ImageIO to convert images formats. It makes me happy, so I wanted to share my experience with all of you.
As NetBeans told me, ImageIO is a class containing static convenience methods for locating ImageReaders and ImageWriters, and performing simple encoding and decoding. ImageIO supports most common formats such as jpg, gif, png and bmp.
The logic of image convertor is not that hard. It is as simple as this:
- Get an image file
- Feed it to the imageReader
- imageReader will return a BufferedImage
- Feed the BufferedImage to the image writer, with name of target format.
You can download a copy of the project from here: imageIO
All the best


about 1 year ago
How soon will you update your blog? I’m interested in reading some more information on this issue.