Get Cropping Coordinates

What's Imagga: Imagga is a web service that automates the process of analyzing, organizing, and searching through large collections of images.

About ‘Get Cropping Coordinates' action: This action performs smart-cropping analysis over a specified image and returns the coordinates for cropping the image.  

Connect to Imagga: Select the appropriate connection for Imagga from the drop-down list. If you haven’t created a connection yet, select ‘Add New’ to create one.

Field data 

URL (Optional): Enter the URL of the image of which you wish to retrieve the ideal cropping coordinates. You can specify multiple URLs by clicking on '+ADD' link.  

Content (Optional): Enter the content ID of the image of which you wish to retrieve the ideal cropping coordinates. You can specify multiple content IDs by clicking on '+ADD' link.  

You can send images for analysis by using either the 'URL' field or the 'Content' field or both the fields. 

Resolution(Optional): This block lets you specify desired image resolution in terms of width and height. 

   - Width (Mandatory): Enter the width that you wish to apply to the image.

   - Height (Mandatory): Enter the height that you wish to apply to the image. 

You can specify resolutions for multiple images by clicking on the '+ADD' link. 

No Scaling (Mandatory): Specify if you want the cropping coordinates to exactly match the requested resolution. Available options are '0' and '1'. By default, the value for this field is set to '0', which means the cropping ordinates will be returned by just preserving the aspect ratio of the image and the image can be later resized after cropping. When you set the field value to '1', the cropping coordinates will exactly match the specified resolution. So, there is no need to resize the image after cropping it

Once you have entered all the details, click on 'Done' and 'Run' the workflow. This will retrieve the cropping coordinates for a specified image.

get-cropping-coordinates

Refer to Imagga API documentation for more information: http://docs.imagga.com/#croppings

Output:
  • output-arrow imagga Get Cropping Coordinates
    • left-triangle results array
      • left-triangle image string
      • left-triangle croppings array
    • left-triangle unsuccessful array