Smartcrop.js – content-aware image cropping in JavaScript
Really awesome, and the test cases look just as good as I could do.<p>I would warn web designers to not blindly apply this to everything though. It scans all the pixels of an image, which can take up to 100ms each, especially on mobile devices. A good use case would be a file upload box with a suggestion to crop the image upon upload.