Aug
31
MooCrop for MooTools 1.2
I just finished modification of MooCrop to support MooTools 1.2. Another added feature is an option to constrain ratio during crop.
p, li { white-space: pre-wra
Update: fixes for IE and Opera added. Tested in IE6, IE7, IE8 Beta1, Opera 9.52, Safari 3.1.1, Google Chrome 0.2.149, Konqueror 4.1.3
Download here: MooCrop.js
Compressed version: MooCrop_compressed.js
Example:

7 Comments
Make A CommentComments RSS Feed TrackBack URL









September 2nd, 2008 at 2:00 pm
It looks really cool and works perfectly in Firefox, but it doesn’t work in IE7
September 3rd, 2008 at 7:31 pm
Thank you for a note! I’ll try to fix it )
September 4th, 2008 at 10:21 am
Done
September 4th, 2008 at 10:34 pm
Thanks for the mod!
September 17th, 2008 at 2:48 am
Rok nice job! Thanks for making it 1.2 compatible and adding the ratio constraints. A lot of people have been hounding me for these features. Do you mind if I include them on my site, with reference to you of course.
Send me an email when you get a chance.
Thanks again.
September 30th, 2008 at 9:53 pm
Nice job upping it to 1.2, the constrainRatio function though only adds the same pixel amount to the other dimension, it doesn’t keep the ratio intact.
Fine for a square resize area (as you have above) but anything else it’s not so good.
I’ve tried hacking it myself, but I’m completely stumped.
October 19th, 2008 at 6:57 pm
Yeh… the ratio constraint isn’t correct.
…pity.
Cheers tho.