Resize with aspect ratio would be a great addition Rick.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 1:42 PM
To: CF-Talk
Subject: Re: Quick Question CF Image Library


Andy Matthews wrote:
> Yep. Image.cfc by Rick Root.
>
> http://www.opensourcecf.com/imagecfc
>
> I just put it into place in a Content Management System and it works
great!

I've got a couple more minor features and one bug to fix for the final
release.. one user pointed out to me the wisdom of resizing to fit a
space while preserving aspect ratio... so I'm gonna add a
"preserveAspectRatio" option to deal with resizing an image to fit
within a specified area... obviously the scaleX() and scaleY() methods
allow you to resize to an exact width or an exact height, and the
resize() method lets you resize to a specific width *AND* height but it
munges the aspect ratio when you do that (which is sometimes desirable).

Plus, if you resize an image down and overwrite the original image file,
it doesn't change the size of the file... which is kinda weird.  Almost
like java treats the original file as a bucket, and when you make the
data bigger it makes the "bucket" bigger, but when you make the data
smaller it doesn't change the size of the bucket.

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234514
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to