Content-aware scaling

Resize images the smart way using the content-aware scaling algorithm (by making use of the seam carving algorithm).

This demo is part of a blog post. You can read more information about content-aware scaling here.


Sample images

Castle Balloons Crosses Wave Canyon Forest

Input image

Output image

Intermediary steps

Sobel filter (edge detection)

Lowest energy seam