Skip to main content

Image Cropping

Set Up via Microsoft Azure

Note that Azure AI Vision can analyze and crop images that meet the following requirements:

  • The image must be presented in JPEG, PNG, GIF, or BMP format
  • The file size of the image must be less than 4 megabytes (MB)
  • The dimensions of the image must be greater than 50 x 50 pixels
  • The file must be externally accessible via URL (i.e. local sites and setups that block direct file access will not work out of the box)

1. Sign up for Azure services

  • Register for a Microsoft Azure account or sign into your existing one.
  • Log into your account and create a new Azure AI Vision Service if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use.
  • Click Keys and Endpoint in the left hand Resource Management menu to view the Endpoint URL for this resource.
  • Click the copy icon next to KEY 1 to copy the API Key credential for this resource.

2. Configure Microsoft Azure API and Key under Tools > ClassifAI > Image Processing > Image Cropping > Settings

  • Select Microsoft Azure AI Vision in the provider dropdown.
  • In the Endpoint URL field, enter your API endpoint.
  • In the API Key field, enter your KEY 1.

3. Enable Feature

  • Turn on the "Enable" toggle in the screen above.
  • Set the other options as needed.
  • Save settings. An error will show if API authentication fails.

4. Test feature

  • Upload image to media library.
  • It will automatically detect and save the most visually interesting part of your image in thumbnails.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.