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
SOURCE RESIZED TO WIDTH 600px USING SEAM CARVING
Compare this with your other standard options
Resize to fit (600px92 wide)
Resize to fill (600x122)
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"
}
}
]
}