aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Conversion of image format" Watch "Conversion of image format" New topic
Author

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: 15299
    
    6

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
Marshal

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


Ping & DNS - my free Android networking tools app
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: http://aspose.com/file-tools
 
subject: Conversion of image format