HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › sun.awt.image.ImageFormatException: Unsupported color conver › Re: Re: sun.awt.image.ImageFormatException: Unsupported color conver
January 5, 2011 at 12:21
#28360
I opened the hi-res image in Photoshop and made sure: the image color space is CMYK.
> img.getColorModel().getColorSpace().getType() == ColorSpace.TYPE_CMYK
The request would make sense if you have a correctly instantiated Image object. But in your case it has internally thrown a sun.awt.image.ImageFormatException. So I suspect “img” object has default values of some properties.
If I have time today or tomorrow I’ll try to create for you an “on-a-fly” converter from CMYK to RGB