CMYK Images Error on Resize
- May 15, 2009
- 1 reply
- 3223 views
I get the following error whenever I try to resize a CMYK image with cfimage or imageresize.
Metadata components != number of destination bands
I am running CF 8.01 with the latest hotfix applied - Cumulative Hot Fix 2 for ColdFusion 8.0.1.
I have tried several images, and I can even take an RGB jpeg that works, open it in Photoshop and save it in CMYK, then try to upload and I get the message.
<cffile action="upload" nameconflict="overwrite" destination="c:\my\dir\" filefield="filefield" />
<cfimage action="read" source="c:\my\dir\#file.serverfile#" name="sourceimage" />
<cfimage action="resize" source="#sourceimage#" destination="c:\my\production\dir\#file.serverfile#"
height="" width="200" overwrite="yes" />
Above is one variation of code that reproduces this. I've also tried using the ImageResize function. I've also tried skipping the "read" step, and just doing the upload then resize. All variations produce the above error on the resize line.
This code actually worked before the cumulative hotfix was applied.
Image attached that produces the error.
