cfx_JpegResize / Coldfusion error scaling and compressing photos

I installed cfx_jpegresize from "chestysoft" on my server today, windows 2003 with cfmx7,....  When I run the below code on my server, it returns an error that it can't find the filename
( filename = "C:\inetpub\idx\ftp\test\small\#originalfiles.name#")
however the code works, it resizes my pics and copies them to another folder, the error occurs once the job is completed. CAn someone look at this and tell me why I'm getting the error and how to fix it? thanks!
-----------------------------------------------------------------------
<cfsetting requesttimeout="480" />
<cfdirectory directory = "C:\inetpub\idx\ftp\test\" name="originalfiles">  
<cfloop query="originalfiles">
<cfx_jpegresize action = "scale"
   source = "C:\inetpub\idx\ftp\test\#originalfiles.name#"
   filename = "C:\inetpub\idx\ftp\test\small\#originalfiles.name#"
   quality = "50"
   factor = "70">
</cfloop>
--------------------------------------------------------------------------
Bang-O-MaticAsked:
Who is Participating?
 
js_vaughanConnect With a Mentor Commented:
It might be because of the 'small' file folder.  CFDIRECTORY includes folders in its results.  I've never used cfx_jpegresize, but since the folder doest exists as a picture, that may be throwing the error.  Either make sure your directory has nothing but pictures, or use CFDIRECTYORYs filter attribute like so:

filter="*.jpg|*.jpeg|*.gif|*.png"
0
 
siva_sivaCommented:
whether the above code contains cfoutput tag like this

<cfoutput>
<cfsetting requesttimeout="480" />
<cfdirectory directory = "C:\inetpub\idx\ftp\test\" name="originalfiles">  
<cfloop query="originalfiles">
<cfx_jpegresize action = "scale"
   source = "C:\inetpub\idx\ftp\test\#originalfiles.name#"
   filename = "C:\inetpub\idx\ftp\test\small\#originalfiles.name#"
   quality = "50"
   factor = "70">
</cfloop>
</cfoutput>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.