This version is old school.
Please find jQuery plugins on npm.
jQuery FocusPoint
jQuery plugin for 'responsive cropping'. Dynamically crop images to fill available space without cutting out the image's subject. Great for full-screen images.