GitHub repository: redwerkz/dont-crop
Description: A small, dependency free javascript library to fit a gradient to an image or extract it's primary colors.