|
From: hans blix on 17 Apr 2008 15:17 Second cfImage bug I've found in a week. Tried reporting it to Adobe, but their bug report form throws a 404 (nice). Basically, certain JPGs will cause CF (or more specifically, Java) to throw this error after reading them to memory, then writing it to disk: Missing Huffman code table entry javax.imageio.IIOException: Missing Huffman code table entry at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method) at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:996) at coldfusion.image.ImageWriter.writeJPeg(ImageWriter.java:60) at coldfusion.image.ImageWriter.writeImage(ImageWriter.java:119) at coldfusion.image.Image.write(Image.java:578) at coldfusion.tagext.io.ImageTag.performWrite(ImageTag.java:593) at coldfusion.tagext.io.ImageTag.doStartTag(ImageTag.java:500) Run the attached code with the image found here: http://img141.imageshack.us/img141/9549/testimagefk9.jpg If you put the URL into the cfimage source (instead of downloading the image and reading it locally) you get a different error: coldfusion.image.Image$ReadImageMetadataException: Exception occured in JPG processing. segment size would extend beyond file stream length at coldfusion.image.Image.initializeMetadata(Image.java:2403) at coldfusion.image.Image.getExifMetadata(Image.java:2415) at coldfusion.image.Image.write(Image.java:577) at coldfusion.tagext.io.ImageTag.performWrite(ImageTag.java:593) at coldfusion.tagext.io.ImageTag.doStartTag(ImageTag.java:500) Verified on Win2K, Win2K3, and WinXP. CF version 8.0.1. <cfimage action="read" source="testimagefk9.jpg" name="myImage"/> <cfset newImageName = "#createUUID()#.jpg"/> <cfimage action="write" destination="#newImageName#" source="#myImage#"/>
From: -==cfSearching==- on 19 Apr 2008 16:16 Did you encounter this problem with 8.0.0? What JVM version are you using? I tested the code using both the url and a local file and both work without error under: O/S: XP SP2 CF: 8,0,0,176276 JVM: 1.6.0_01 [i]Tried reporting it to Adobe, but their bug report form throws a 404 (nice).[/i] On submit? The form displays correctly for me. http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
From: Adam Cameron on 19 Apr 2008 17:09 > Did you encounter this problem with 8.0.0? What JVM version are you using? I > tested the code using both the url and a local file and both work without error > under: > > O/S: XP SP2 > CF: 8,0,0,176276 > JVM: 1.6.0_01 Works fine for me too (same config as per yours above). -- Adam
From: -==cfSearching==- on 20 Apr 2008 19:43 After applying updater 1, I received the two errors you posted above. O/S: XP SP2 CF: 8,0,1,195765 JVM: 1.6.0_04 Reverting to JVM 1.6.0_01-b06 had no effect on the error. I rolled back to CF 8.0.0 and the errors went away. That does seem to support the theory it is not or not solely a jvm problem. Out of curiosity, is there anything special about these images or do they all have something in common? Using ImageIO to write the images, instead of cfimage, seems to work with 8.0.1. <cfscript> newImageName = createUUID() & ".jpg"; outFile = createObject("java", "java.io.File").init( ExpandPath(newImageName) ); bi = ImageGetBufferedImage(myImage); ImageIO = createObject("java", "javax.imageio.ImageIO"); ImageIO.write( bi, "jpeg", outFile ); </cfscript>
From: sandalwod on 21 Apr 2008 13:39
I am getting the same issue. Let me know if you have any lucking finding a solution. On Apr 17, 3:17 pm, "hans blix" <webforumsu...(a)macromedia.com> wrote: > Second cfImage bug I've found in a week. Tried reporting it to Adobe, but their > bug report form throws a 404 (nice). > > Basically, certain JPGs will cause CF (or more specifically, Java) to throw > this error after reading them to memory, then writing it to disk: > Missing Huffman code table entry > javax.imageio.IIOException: Missing Huffman code table entry at > com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method) at > com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:996) at > coldfusion.image.ImageWriter.writeJPeg(ImageWriter.java:60) at > coldfusion.image.ImageWriter.writeImage(ImageWriter.java:119) at > coldfusion.image.Image.write(Image.java:578) at > coldfusion.tagext.io.ImageTag.performWrite(ImageTag.java:593) at > coldfusion.tagext.io.ImageTag.doStartTag(ImageTag.java:500) > > Run the attached code with the image found here: > http://img141.imageshack.us/img141/9549/testimagefk9.jpg > > If you put the URL into the cfimage source (instead of downloading the image > and reading it locally) you get a different error: > coldfusion.image.Image$ReadImageMetadataException: Exception occured in JPG > processing. > segment size would extend beyond file stream length > at coldfusion.image.Image.initializeMetadata(Image.java:2403) > at coldfusion.image.Image.getExifMetadata(Image.java:2415) > at coldfusion.image.Image.write(Image.java:577) > at coldfusion.tagext.io.ImageTag.performWrite(ImageTag.java:593) > at coldfusion.tagext.io.ImageTag.doStartTag(ImageTag.java:500) > > Verified on Win2K, Win2K3, and WinXP. CF version 8.0.1. > > <cfimage action="read" source="testimagefk9.jpg" name="myImage"/> > <cfset newImageName = "#createUUID()#.jpg"/> > <cfimage action="write" destination="#newImageName#" source="#myImage#"/> |