Skip to main content

Filter: classifai_should_smart_crop_image

Filters whether to apply smart cropping to the current image.

Parameters

NameTypeDescription
$should_smart_cropboolWhether to apply smart cropping. The default value is set in ComputerVision settings.
$metadataarrayImage metadata.
$attachment_idintThe attachment ID.

Since

  • 1.5.0

Source

Defined in includes/Classifai/Providers/Azure/ComputerVision.php at line 375

Returns

Whether to apply smart cropping.

Ready to Get Started?

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