Skip to main content

Filter: classifai_smart_cropping_source_url

Filters the image URL to send to AI Vision for smart cropping.

A non-null value will override default plugin behavior.

Parameters

NameTypeDescription
$url`nullstring`
$attachment_idintThe attachment image ID.

Since

  • 1.5.0

Source

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

Returns

URL to be sent to Computer Vision for smart cropping.

Ready to Get Started?

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