>
> Hi Guys,
>

Does anybody know of any tutorials or anything for ImageMagick? I have it
installed and verified the installation. I'm not having any luck finding
documention on how to use cfexecute with the function.

-Jason

I'm trying to convert the following code for cfimagemagick

<CFIMAGE action="info"
srcfile="#cffile.serverdirectory#/#local_photo_file#">

<CFIF ((cfimage.width GT 100) OR (cfimage.height GT 90)) and NOT
FileExists("#cffile.serverdirectory#/xs_#local_photo_file#")>

     <CFIF cfimage.width GT "#cfimage.height#">
        <CFSET Size = "90">
        <CFSET Percentage = Evaluate(Size / cfimage.width)>
        <CFSET Percentage = Round(Percentage * 100)>
    <CFELSE>
        <CFSET Size = "100">
        <CFSET Percentage = Evaluate(Size / cfimage.height)>
        <CFSET Percentage = Round(Percentage * 100)>
   </CFIF>

   <CFIMAGE
       srcfile="#cffile.serverdirectory#/#local_photo_file#"
       destfile="#cffile.serverdirectory#/xs_#local_photo_file#"
       action="edit"
       width="#Percentage#%"
       height="#Percentage#%"
       uridirectory="NO"
     >

 </CFIF>
-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to