File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Conversion of image format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Conversion of image format" Watch "Conversion of image format" New topic

Conversion of image format

prashant gour
Ranch Hand

Joined: Feb 07, 2006
Posts: 45
I am working on conversion of image format one to another. I have image and want to convert that into .EMF, .JPG,.PCT, .PNG, .EPS, TIF, .BMP, .WMF formats and also want to set color depth (24 bit, 8 bit) Color space (YUV 4:4:4, YUV 4:2:2 etc) , color operations (Invert, Gamma etc ) and also set the transparent color of image.

So share your Experience if anybody has done this before.
Thanks in advanced

~Prashant Gour
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

The core API's that ship with the JDK don't support image type conversion. Sun made an attempt at a library deemed Java Advanced Imaging API but has been tossed by the way side for quite some time, if horrible slow, and quite dated.

There is a really good API called ImageMagick. It is a native API but has binding for several languages, including one for Java called JMagick that you might find helpful.

GenRocket - Experts at Building Test Data
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I like the ImageJ library/image processing application a lot. It can read and write lots of file formats, but not EPS, I think.
prashant gour
Ranch Hand

Joined: Feb 07, 2006
Posts: 45
Thanks for suggestions. To work with JAI i am tring to include jai_windows-i586.jar in build path. is there any other way to work with JAI api.

if you have any sample code please share with me.

thanks and regards
Prashant Gour
prashant gour
Ranch Hand

Joined: Feb 07, 2006
Posts: 45
Java Advance Imaging is the one way on which i can move ahead but these API are not in current verion of java. i have to download these Jar.

are there any API in Current version of java which can help me to do the above.

waiting for responce.

Prashant Gour
I agree. Here's the link:
subject: Conversion of image format
It's not a secret anymore!