I think you want to use the imageScaleToFit() function.

On Thu, May 21, 2009 at 9:07 AM, Melissa Cope <[email protected]> wrote:
>
> I have a page with a gallery of 150px x 180px thumbnails. People are allowed 
> to upload their own photos, and the vast majority of them are not the exact 
> same aspect ratio. I want their photo, regardless of orientation or size, to 
> end up with a maximum width of 150px or a maximum height of 180px.
>
> I currently have code that does this (shown below) but I figure there's 
> probably an easier way. We just upgraded to CF8 this week, so I'm a bit 
> behind the curve on the new tags. Any ideas on a better way to go about this? 
> Thanks!
>
> My current code:
>
-- 
===========================================================================
Raymond Camden, ColdFusion Jedi Master

Email    : [email protected]
Blog      : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.org

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4574
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to