I have uploaded the images to:

 /site_ttheartoflovingcatsanddogs_com/toalcad_images
/taolcad_images/
/site_ttheartoflovingcatsanddogs_com/main/taolcad_images

I have tried:
/taolcad_images/
../../taolcad_images
This code is broke:

 <!---Read the image into an object --->

                  <cftry>
                    <cfimage action="read" name="myImage"
source="../taolcad_images/products/resize/#qry_latest24items.largepic1#">
                    <cfcatch>
                      <cfimage action="read" name="myImage"
source="../taolcad_images/products/#qry_latest24items.largepic1#">
                      <!--- Set the square size of the thumb --->
                      <cfset sq_size = 133>
                      <!--- Write the result to a file. --->
                      <cfset ImageSetAntialiasing(myImage,"on")>
                      <cfset ImageScaleToFit(myImage,sq_size,sq_size)>
                      <!--- Calculate the x and y position to paste the
image --->
                      <cfif myImage.width GTE myImage.height>
                        <cfset x = 0>
                        <cfset y = ceiling((myImage.width -
myImage.height)/2)>
                        <cfelse>
                        <cfset x = ceiling((myImage.height -
myImage.width)/2)>
                        <cfset y = 0>
                      </cfif>
                      <cfset newimg = ImageNew("",sq_size, sq_size, "rgb",
"c4cba9")>
                      <cfset ImagePaste(newimg, myImage, x, y)>
                      <cfset
ImageWrite(newimg,"../taolcad_images/products/resize/#qry_latest24items.largepic1#")>
                    </cfcatch>
                  </cftry>
                  <cfset qry_latest24items.name = replace(
qry_latest24items.name, '"', '&quot;', "all")>
                  <cfset qry_latest24items.productDescription =
replace(qry_latest24items.productDescription, '"', '&quot;', "all")>
                  <cfif len(qry_latest24items.productDescription) gt 310>
                    <cfset qry_latest24items.productDescription =
mid(qry_latest24items.productDescription, 1, 310)>
                  </cfif>
                  <cfset variables.item_url = "/art-item/" &
lcase(rereplace(rereplacenocase(qry_latest24items.name, "[^a-z|\ ]", "",
"all"), "[[:space:]]+", "-", "all")) & "-" & qry_latest24items.productid &
"/index.cfm">
                  <cfset qry_latest24items.productDescription =
qry_latest24items.productDescription & "... <a
href='#variables.item_url#'>read more</a>">
                  <a href="#variables.item_url#" title="#name#"><img
src="/taolcad_images/products/resize/#qry_latest24items.largepic1#"
alt="#name#" width="177" /></a></td>
                <td></td>
                <td><a href="#variables.item_url#" title="#name#"><span
class="frontpageitems">#qry_latest24items.name# -
#DollarFormat(qry_latest24items.unitPrice)#</span></a><br />
                  <span
class="frontpageitemstext">#qry_latest24items.productDescription#</span></td>
              </tr>

-- 
Regards,
chedder is bedder


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to