Seam-Carving Given an image input and desired width, this algorithm resizes the image using context-aware scaling. In other words, it finds the path of pixels that has the least change in colour and intensity, and eliminates such paths.