Skip to main content

Action: classifai_smart_cropping_unsuccessful_response

Fires when the generateThumbnail smart-cropping API response did not have a 200 status code.

Parameters

NameTypeDescription
$response`array\WP_Error`
$urlstringThe request URL with query args added.
$dataarrayArray containing the image height and width.

Since

  • 1.5.0

Source

Defined in includes/Classifai/Providers/Azure/SmartCropping.php at line 290

Ready to Get Started?

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