According to what I have heard.  The cfimage tag is much more than just
the standard Java image manipulation libraries out there.  It also
incorporates a large amount of "proprietary Adobe code" which was
re-written in Java just for Scorpio.  (I'm thinking photoshop...)

Personally I think that kicks butt because this is one place where CF
can do stuff (or at least produce quality) that the standard Java stuff
can't.  

As far as the performance-- I dunno.  Are the file sizes very large?
Perhaps Disk I/O is bottlenecking.  

You should totally check out Ben Nadel's blog entry showing how to
easily use cfthread to asynchronously process multiple images.
http://www.bennadel.com/index.cfm?dax=blog:749.view

He's doing a cfhttp, but I'm sure the same could be used to crank
through your images 5 or 10 at a time.


~Brad



-----Original Message-----
From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 21, 2007 9:41 AM
To: CF-Talk
Subject: Re: cfimage resize running very slow

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.
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:286689
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