CFIMAGE not working with certain JPG
- September 8, 2009
- 1 reply
- 2872 views
Hi all,
Got an emergency here, hope anyone can help.
I find that more and more people are encountering problems using CFIMAGE -- no error is thrown when reading/saving certain jpg images, but the result image is just blank and gray.
The code is just simple:
<CFSET IM=ImageRead("C:\DSCN1570.JPG")>
<cfset ImageResize(IM,300,200,"highPerformance")>
<cfset ImageWrite(IM,"C:\DSCN1570-2.JPG")>
or even just:
<CFSET IM=ImageRead("C:\DSCN1570.JPG")>
<cfset ImageWrite(IM,"C:\DSCN1570-2.JPG")>
This happens after applying the latest hotfix for 8.0.1 (Cumulative Hotfix 2 for CF 8.0.1). If this patch is not installed the processing works.
Attached is an offending file. The code works if i replace the file with another jpg.
Any help is much appreciated. I'm running CF 8,0,1,195765 devt edition on Windows XP and my java version is 1.6.0_04. My metadata-extractor is 2.3.1.
Thanks,
Andrew
