HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › sun.awt.image.ImageFormatException: Unsupported color conver This topic has 19 replies, 3 voices, and was last updated Jul 27, 201507:53:37 by hannacch. Viewing 5 posts - 16 through 20 (of 20 total) ← 1 2 Author Posts PD4ML June 24, 2015 at 14:10 #28366 It could be that your jpeg is using the CMYK color model rather than RGB. You can convert it on a fly (with JAI, for example) using custom resource loaders API. See pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html hannacch July 21, 2015 at 15:41 #28367 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); … PD4ML July 21, 2015 at 21:11 #28368 > but my image can’t get metadata with reader.getImageMetadata(0);. What kind of error it produces? Anonymous July 22, 2015 at 02:50 #28369 @PD4ML wrote: > but my image can’t get metadata with reader.getImageMetadata(0);. What kind of error it produces? reader.getImageMetadata is null so unable to proceed to next line of code. hannacch July 27, 2015 at 07:53 #28370 @Guest wrote: @PD4ML wrote: > but my image can’t get metadata with reader.getImageMetadata(0);. What kind of error it produces? reader.getImageMetadata is null so unable to proceed to next line of code. Any idea on this issue? I don’t know why I can’t get any information from Image Metadata. Author Posts Viewing 5 posts - 16 through 20 (of 20 total) ← 1 2 The forum ‘Troubleshooting’ is closed to new topics and replies.