Seam carving (also known as image retargeting, content-aware image resizing, content-aware scaling, liquid resizing, or liquid rescaling).

The purpose of the algorithm is to display images without distortion on various media (cell phones, etc) using document standards, like HTML, that already support dynamic changes in page layout and text, but not images. (via Wikipedia)

In more common terms, it allows an image to be reduced in size by removing similar content contained within the image. Unlike scaling which will distort or cut off edges of the image, liquid rescaling analyzes the image, and reduces it size based on repeating patterns in the image. In the example below, you will see that the repeating water content is cropped out, while still leaving the interesting edge parts of the image.

EXAMPLE SOURCE IMAGE

Original 800x122Original 800x122

Original 800x122

SOURCE RESIZED TO WIDTH 600px USING SEAM CARVING

Liquid Rescaled 600x122Liquid Rescaled 600x122

Liquid Rescaled 600x122

Compare this with your other standard options

Resize to fit (600px92 wide) ​​

Notice the height now to do be reduced to account for the horizontal shorteningNotice the height now to do be reduced to account for the horizontal shortening

Notice the height now to do be reduced to account for the horizontal shortening

Resize to fill (600x122) ​​

Notice the edges of the image are truncated.Notice the edges of the image are truncated.

Notice the edges of the image are truncated.

How do I use it?

{
  "application_id": "YOUR_APP_ID",
  "src": "https://s3.amazonaws.com/img.blitline/web/wide_trimmed.jpg",
  "functions": [
      {
          "name": "liquid_rescale",
          "params": {
              "width": 600
          },
          "save": {
              "image_identifier": "MY_CLIENT_ID"
          }
      }
  ]
}