Massimo's tag has getHeight and getWidth methods. Call those on an image, then check accordingly.
<!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Parker, Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 11:48 PM To: CF-Talk Subject: RE: image manipulation in coldfusion? Thanks guys - I've been following this with interest as I have a particular resizing challenge at the moment. What I'm looking for is a way to test the size of an image before its displayed and then resize it if its width exceeds 250px - if 250px or less then it can be left alone. Not sure if tags like Massimo's support that or not. Any suggestions please. ++++++++++ Kevin Parker Web Services Consultant WorkCover Corporation p: 08 8233 2548 m: 0418 806 166 e: [EMAIL PROTECTED] w: www.workcover.com ++++++++++ -----Original Message----- From: Roger B. [mailto:[EMAIL PROTECTED] Sent: Friday, 7 October 2005 1:53 PM To: CF-Talk Subject: Re: image manipulation in coldfusion? > That's what I tried to do when > I wrote version 2.0 of my CFC and I achieved a huge increase in quality. Massimo: Just to let you know... I was playing around with your CFC, and noticed that on some images (usually horizontally oriented ones), bufferedCrop() would throw an "outside of raster" error. I was able to fix it by modifying the code to check for crop operations that exceed the height of the image. With that said, thanks for putting the code out there. -- Roger Benningfield http://admin.support.journurl.com/ http://admin.mxblogspace.journurl.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220302 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54