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
Hi,
I tried the CMYK to RGB conversion trick (CmykImageLoader.java) but my image can’t get metadata with reader.getImageMetadata(0);. Is there any others way for me to solve sun.awt.image.ImageFormatException: Unsupported color conversion request?
…
if (“JPEG”.equalsIgnoreCase(format) || “JPG”.equalsIgnoreCase(format)) {
IIOMetadata metadata = reader.getImageMetadata(0);
String metadataFormat = metadata.getNativeMetadataFormatName();
IIOMetadataNode iioNode = (IIOMetadataNode) metadata.getAsTree(metadataFormat);
…