Smartcrop.js implements an algorithm to find good crops for images.

Source: jwagner/smartcrop.js