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 Comment
  • a gravatar morten Said:

    It looks really cool and works perfectly in Firefox, but it doesn’t work in IE7

  • a gravatar Rok Said:

    Thank you for a note! I’ll try to fix it )

  • a gravatar Rok Said:

    Done

  • a gravatar caz Said:

    Thanks for the mod!

  • a gravatar Nathan White Said:

    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.

  • a gravatar Del Said:

    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.

  • a gravatar Ashims Said:

    Yeh… the ratio constraint isn’t correct.

    …pity.

    Cheers tho.

Comments RSS Feed   TrackBack URL

Leave a comment

top