Content-aware image resizing in JavaScript
You can also apply this to each frame in a video for a rather interesting effect.My brother has a YouTube channel full of content-aware scaling videos:https://youtu.be/a8k3b-QNbhs