wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 41034
    
  43
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
 
wood burning stoves
 
subject: Conversion of image format
 
Similar Threads
Suggestion for image processing
Why did it have to be PNG
Conversion of image
BufferedImage color model
Writing mobile applications that augment Reality...