Once again it’s been a long time since I released an update to the JavaScript Image Cropper UI, for reference v1.2.1 was released in 2009 and the previous version in 2006!

There was a comment recently basically saying that it “used to be great but is not supported as the last update was 2009″, which is quite far from the truth; as anyone who contacts me with a problem/question that I can replicate or help with can attest to. The long times between updates with the cropper are purely because the script is stable (thanks in no small part to building on top of stable & well maintained libraries) and continues to work for people who download it and I haven’t had reports of any issues that would require a new general release.

However I have received information from a few people noting that they were having some issues in IE9. Not having that at hand to test I could only go on the few 3rd party reports I had, but now I’ve managed to test in IE9 and have ensured all the examples work. This only required updating to the latest versions of prototype & script.aculo.us and no other changes.

So the 1.2.2 release contains no new code, only updated examples & the IE9 support notice (that you’ll probably need the latest versions of the libs for it to work). This post is more for the “I/its not dead” message.

Comments

There have been 4 comments so far, join the discussion.

1. Rebbay - 30th Aug 2011 - 8:26 pm

Hi Dave,

Wish I’d found this before starting work on my own. It looks great and I’m trying to mesh it with some features I’d already coded for mine. Basically I have a list of thumbnails that size according to uploaded dimensions to fill the window. So rather than listening for the page to load I just made that a function which I hit after clicking the thumbnails and changing the source and dimensions of ‘testImage’. So far so good. Problem is the previous croppers don’t go away. How can I destroy the object? Just making ‘new Cropper etc…’ a variable and then trying to kill it is no good. Any ideas off the top of your head?

Thanks for a geat script!

2. Dave - 31st Aug 2011 - 8:08 am

Rebbay:

There is a remove() method on the cropper to remove the cropper from the HTML, for an example check out the dynamically changing image demo (http://www.defusion.org.uk/demos/060519/cropper.php?demoType=dynamic also in the download) it has a CropManager object that keeps and instance of the cropper calls the remove() method on the cropper.

3. Rebbay - 31st Aug 2011 - 1:56 pm

Groan, of course. Sorry for wasting your time (which I’m now doing again). If you’re curious I’ll just be saving the coords to a db for chosen pics and then using aspJPEG to ‘crop’ on the fly. It can send images straight to the browser from memory so much more efficient and all the originals stay intact. Thanks again man.

4. tian tian - 9th Nov 2011 - 4:24 am

very exciting that you can fixed the buy—run on IE9
thanks again

Leave a comment

No HTML please, only textile. For code please use [lang]...[/lang] tags (e.g. [html]...[/html] for HTML)