refreshing the page I get variable results, with ImageJ sometimes taking
longer, sometimes taking less time than CFX_Image.


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                            
                    Rich Wild                                                          
                            
                    <[EMAIL PROTECTED]        To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>     
                    go.com>              cc:                                           
                            
                                         Subject:     [ cf-dev ] cfmx & imageJ         
                            
                    25/06/2003                                                         
                            
                    09:43                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



is anyone using imageJ on cfmx for graphics work yet?

looks nice. all you have to do to install is drop the jar into the web-ing
folder and cycle the server. jubbly.

from my first impressions, a simple conditional width resize (only resize
if
width is above x pixels) seems faster than cfx_image

the following code (using Benoit Hediard's simple resize UDF - which calls
ImageJ) yielded the following results on 4 medium sized jpegs:

ImageJ time taken = 187ms. CFX_Image time taken = 407ms.

You can see the results at:
http://www.funjunkie.co.uk/photos/prints/test.cfm

Code:


<cfloop query="files">
           <cfset
resize(expandpath(name),getdirectoryfrompath(expandpath('thumbs/*.*')) &
'thb_' & name, 200, 'width')>
</cfloop>

<cfloop query="files">
           <cfx_image
                     action="iml"
                     file="#ExpandPath('#name#')#"
                     commands="
                     resizeif 200,-1,200
                     write
#GetDirectoryFromPath(ExpandPath('thumbs/*.*'))#thb_#name#">
</cfloop>


neat.


-------------------------------------------------------
Rich Wild
Senior Web Developer

-------------------------------------------------------
e-mango                             Tel: 01202 755 300
Gild House                      Fax: 01202 755 301
74 Norwich Avenue West
Bournemouth                   Mailto:[EMAIL PROTECTED]
BH2 6AW, UK                      http://www.e-mango.com
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of e-mango.com ltd,
unless otherwise explicitly and independently indicated
by an authorised representative of e-mango.com ltd.
-------------------------------------------------------


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to