I'm curious what cfimage uses behind the scenes. If it's the java image libraries, I wouldn't be surprised with the speed issues as I had trouble with them when used as a cfobject.
On 8/20/07, Steve Sequenzia <[EMAIL PROTECTED]> wrote: > I am trying to figure out if it is normal for the cfimage resize to be very > slow. I am reading photos from a database then resizing them and writing them > to a directory. The the process works fine but it gets through about 17 > pictures and then errors out with this error "The request has exceeded the > allowable time limit Tag: CFLOOP" > > Am I missing something here? Here is some of the code: > > <cfloop query="getPhotos"> > > <cfimage source="#photoPath#/#photoName#" name="ph"> > > <cfif imageGetWidth(ph) GTE imageGetHeight(ph)> > > <cfset widthT = '150'> > <cfset heightT = '112'> > > <cfset widthF = '600'> > <cfset heightF = '450'> > > <cfelse> > > <cfset heightT = '150'> > <cfset widthT = '112'> > > <cfset heightF = '600'> > <cfset widthF = '450'> > > <cfimage action="resize" height="#heightT#" width="#widthT#" name="nImage" > source="#photoPath#/#photoName#" > destination="#application.viewPhotoDir#/thumbnails/#photoName#" > overwrite="yes"> > > <cfimage action="resize" height="#heightF#" width="#widthF#" name="nImage2" > source="#photoPath#/#photoName#" > destination="#application.viewPhotoDir#/full/#photoName#" overwrite="yes"> > > </cfloop> > > Any help on this would be great. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286687 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

