Bookmark: Content-aware image resizing in JavaScript | Trekhleb

Article explaining how to resize an image while preserving the important content in it