Smart Image Cropping API

Smart Image Cropping API

Smart image cropping API that can intelligently identify important elements of an image and retain it during cropping.

Smart image cropping API is a powerful tool that helps you to automatically generate human-like, satisfying cropped images. First, it identifies the important elements of an image by using image processing and computer vision algorithms and then crops the image using the aspect ratio or the width/height variables you've provided, without losing the most relevant parts of the content.

Use cases

This API is very useful for:

  • Media companies for displaying the most important part of the image on a smaller screen or with a different aspect ratio than the original image file.
  • Mobile apps. They have smaller frames and popular apps now have square formats for images.
  • E-commerce sites: There are many areas where a product image needs to be displayed, all in a different format (listing, product detail page, recommendations..). Smart crop API ensures the image doesn’t lose its content.

How it works

Smart image cropping API requires an image URL and one of the resizing options: aspect ratio or width/height to work.

The algorithm takes into account multiple factors while calculating the most important region of the image. It applies a set of filters: The rule of third, saliency detection, face detection, and edge detection to the given image to find the most scoring image that fits into the desired crop size and provide the most relevant content. Images shown below are the filter output of the images.

Smart image cropping API

image cropping API

Smart image cropping

What is Saliency Detection?

Saliency detection uses a set of computer vision and image processing principles to find the most eye-catching, noticeable parts of the image. Smart Image Cropping API utilizes saliency algorithms and crops the image file accordingly.

In neuroscience, saliency is described as an attention mechanism in organisms to narrow down to the important parts of what they see.

Saliency Detection

Smart Image Cropping API utilizes saliency algorithms and crops the image file accordingly. So you don't need to deal with such complications. All is done automatically for you.


Whether we want to improve the overall composition of an image or we just need to resize the image to make it fit into different devices, frames; we use image cropping tools. It is an easy task for a person to decide the main focus of an image and retain this area during cropping. But for the businesses that are relying on user-generated content, it might be very time-consuming to have this process done manually. You don't need to deal with such complications. All is done automatically for you through Smart Image Cropping API.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

Free Plan

No credit cards required
5 Requests / Daily, 10 Requests / Monthly

Gold Plan

Monthly subscription
100 Requests / Daily, 3,000 Requests / Monthly

Diamond Plan

Monthly subscription
1,000 Requests / Daily, 30,000 Requests / Monthly

Custom Plan

Monthly subscription
Fully customizable
Fast and reliable
Generates 3 crops for each image
Full privacy
Returns width, height and also x and y coordinates

Ready to try it out?

We offer a free plan. No credit cards required!

or see documentation

See Also

View All

Are you an API developer?

Market your API on APILayer and start making money now!