Jordan Michaels wrote:
> 
> On any image manipulation tags I've seen, you have to calculate the
> proper proportions in order to keep them.

ImageCFC has a scaleX and scaleY property, so ify ou want to restrict 
your image to 50px high, you'd just use the scaleY() method.  Both 
methods maintain aspect ratio and you don't have to do any calculations 
for the OTHER dimension.

I'm gonna add a scaleToFit() method too that takes a maximum width and 
height and forces your image to fit within that space but still maintain 
aspect ratio.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259964
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to