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. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286647
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to