4 Replies Latest reply on May 12, 2011 10:01 AM by 545 Steve

    cfimage or ImageRead problem

    WestSide Level 1

      Hi,

       

      I have the following code:

       

       

      <cfset img = ImageRead("test.jpg") />

       

      <cfdump var="#img#" />

       

      I get an error saying "Invalid image format".

       

      java.awt.color.CMMException: Invalid image format
           at sun.awt.color.CMM.checkStatus(CMM.java:131)
           at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
           at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516)
           at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1102)
           at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
           at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1070)
           at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:885)
           at javax.imageio.ImageReader.read(ImageReader.java:923)
           at coldfusion.image.ImageReader.readJPEGImage(ImageReader.java:238)
           at coldfusion.image.ImageReader.readJPEGImage(ImageReader.java:207)
           at coldfusion.image.ImageReader.readImage(ImageReader.java:102)
           at coldfusion.image.Image.<init>(Image.java:238)
      

       

      Any idea why I'm getting this and how to fix it?  The image is an actual image.

       

      Westside