tracker issue : CF-3536081

select a category, or use search below
(searches all categories and all time range)
Title:

cannot read cmyk jpg

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 04/04/2013

Components: CFIMAGE

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final / 284738, 290259

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Windows 7

Vote Count: 0

Problem Description:

jpg in cmyk colorspace cannot be read by cfimage.  This bug has never been fixed since cfimage was introduced.  I was told it has been fixed by http://blogs.coldfusion.com/post.cfm/image-enhancements-in-coldfusion-10 but it wasn't.  Any jpg cmyk image converted by http://www.rgb2cmyk.org/ would trigger the exception.

Steps to Reproduce:

<cfimage action="read" name="x" source="someCmykImage.jpg">

Actual Result:

An exception occurred while trying to read the image.
Inconsistent metadata read from stream

coldfusion.image.ImageReader$ImageReadingException: An exception occurred while trying to read the image.
	at coldfusion.image.ImageReader.readJPEGImage(ImageReader.java:274)
	at coldfusion.image.ImageReader.readImage(ImageReader.java:121)
	at coldfusion.image.Image.<init>(Image.java:275)

Expected Result:

no exception

Any Workarounds:

convert to rgb with 3rd party tool like imagemagick first.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3536081

External Customer Info:
External Company:  
External Customer Name: henrylearn2rock
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

I have a similar issue which I reported recently. I believe the issue may be caused by ColdFusion not selecting the correct jpeg ImageReader. If the CLibJPEGImageReader is the first one returned in the collection, then reading a CMYK Image would work. However collections are not guaranteed to be in any particular order. If it is not the first one returned by the iterator, then the first ImageReader is the one used. See my bug report for more detail: https://bugbase.adobe.com/index.cfm?event=bug&id=CF-3596008
Comment by External U.
15817 | July 17, 2013 03:33:52 PM GMT
Hi, where can I download this fix? We encounter exact the same issue.
Comment by External U.
15818 | November 13, 2013 12:09:52 PM GMT