Skip to main content
Inspiring
May 15, 2009
Question

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.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 16, 2009

    For some reason your attachment is showing up as  "QUEUED" so I cannot download it.  Could you try posting a link (using your server or a public server like imageshack.us)?


    tSparkAuthor
    Inspiring
    May 18, 2009

    Here are two images to test this with...

    1. RGB JPG - This works - http://www.hamilton.edu/devms/AppleiPod-MA980LL-A.jpg

    2. CMYK JPG - ERROR - http://www.hamilton.edu/devms/CMYKAppleiPod-MA980LL-A.jpg

    I should also note that sometimes it times out rather than displaying the error.  I've also tried updating the JVM, which did not help.

    Participating Frequently
    May 18, 2009

    CF 8.0.1 with hot fix 2 I don't get an error but:

    - it's very slow (110 seconds response time);

    - the generated image has it's colors inverted and I fixed it in

    Photoshop with Invert.

    Mack