3 Replies Latest reply on Mar 17, 2009 1:12 AM by Newyork_az

    problem with ImageResize & cfimage

    Newyork_az
      I have some code to resize the images in loop

      <cfloop index="i" from="1" to="#ArrayLen(fr)#" step="1">
      <cfset myImage=ImageNew("#Application.site#/img/albums/temp/#fr ['to']#")>
      <cfset info=ImageInfo(myImage)>
      <cfset ImageResize(myImage,"50","")>
      <cfimage source="#myImage#" action="write" destination="#Application.site#/img/albums/1/a.#aid#/#fr
      ['to']#" overwrite="yes">
      </cfloop>

      when the images more then 1mb Loop return with timeout error (The request has exceeded the allowable time limit Tag: CFLOOP)
      How i can run cfimage and imageresize in background mode? Or any other way to solve this problem?