This content has been marked as final. Show 3 replies
Note that if the server has a set timeout (using SeeFusion or some other method) then even using CFThread won't get around this - you'll have to reduce the allowable size of your image to make sure processing time is less than the timeout or contact the remote host and ask for an exemption for that page...though it's unlikely they will grant it since the timeout exists for a reason (to ensure the server runs smoothly).
I try to use cfthread, but resizing is not working.
Where my error?
<cfloop index="i" from="1" to="#ArrayLen(fr)#" step="1">
<cfthread action="run" name="#i#">
<cfset myImage=ImageNew("#Application.site#/img/albums/temp/#fr ['to']#")>
<cfif info.width gt "50">
<cfimage source="#myImage#" action="write" destination="#Application.site#/img/albums/1/a.#aid#/#fr['to']#" overwrite="yes">