Question
New CFImage problem
I am using CFImage and seeing some strange behavior. The
image uploads just fine, but on resize I get the following error
message:
"ColdFusion was unable to create an image from the specified source file.Ensure that the file is a vaild image file. The specific sequence of files included or processed is: D:\InetPub\xxxxx\admin\pod.cfm, line: 38
I'm using exclusively JPGs in this app. The error variously occurs on one of the "resize" directives below. Full routine code is below:
<cffile action="UPLOAD" filefield="form.pod_filename" destination="#danet_path#images\pod\" nameconflict="MAKEUNIQUE" attributes="Normal">
<cfset processimage="#File.ServerFile#">
<!-- create fullsize -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#processimage#" destination="#danet_path#images\pod\#File.ServerFileName#_full.jpg" width="530" height="" overwrite="Yes">
<!-- create front page -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#processimage#" destination="#danet_path#images\pod\#File.ServerFileName#_thm.jpg" width="390" height="" overwrite="Yes">
<!-- create mini -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#File.ServerFileName#_thm.jpg" destination="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" width="250" height="" overwrite="Yes">
<cfimage source="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" name="pod_img">
<cfset ImageCrop(pod_img,55,0,140,140)>
<cfimage action="WRITE" source="#pod_img#" destination="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" overwrite="yes">
"ColdFusion was unable to create an image from the specified source file.Ensure that the file is a vaild image file. The specific sequence of files included or processed is: D:\InetPub\xxxxx\admin\pod.cfm, line: 38
I'm using exclusively JPGs in this app. The error variously occurs on one of the "resize" directives below. Full routine code is below:
<cffile action="UPLOAD" filefield="form.pod_filename" destination="#danet_path#images\pod\" nameconflict="MAKEUNIQUE" attributes="Normal">
<cfset processimage="#File.ServerFile#">
<!-- create fullsize -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#processimage#" destination="#danet_path#images\pod\#File.ServerFileName#_full.jpg" width="530" height="" overwrite="Yes">
<!-- create front page -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#processimage#" destination="#danet_path#images\pod\#File.ServerFileName#_thm.jpg" width="390" height="" overwrite="Yes">
<!-- create mini -->
<cfimage action="RESIZE" source="#danet_path#images\pod\#File.ServerFileName#_thm.jpg" destination="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" width="250" height="" overwrite="Yes">
<cfimage source="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" name="pod_img">
<cfset ImageCrop(pod_img,55,0,140,140)>
<cfimage action="WRITE" source="#pod_img#" destination="#danet_path#images\pod\#File.ServerFileName#_mini.jpg" overwrite="yes">
