Skip to main content

Filter: classifai_should_crop_size

Filters whether to smart crop images of a given size.

Parameters

NameTypeDescription
$returnboolWhether non-position-based cropping was opted into when registering the image size.
$sizestringThe image size.

Since

  • 1.5.0

Source

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

Returns

Whether this image size should be smart cropped.

Ready to Get Started?

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