We are getting an error when trying to generate a Smart Crop on a very narrow image (32x1200). Dynamic Media is throwing an error: "The supplied auto-swatch generation parameters (SmartCrop) led to an invalid swatch. No auto-swatch operation was applied to this image."
Our Smart Crop swatch parameters are 30x30, so the image is not too narrow to generate a swatch in theory. Adobe's documentation doesn't seem to list a minimum width or aspect ratio where Smart Crops do not work.
Is anyone aware of what constraints exist for Smart Crops for the source file? We're using the Smart Crops programmatically, so we need to avoid trying to generate Smart Crops for problem files, but we're not sure what attributes to use to avoid Smart Crops. I supposed we could add a try / catch, but that seems inelegant.
Thanks!
Beau
Background: AEM 6.5 SP16 in AMS connected to Dynamic Media.
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @FreedomMarketin
According to the official documentation, for the successful application of a smart crop, it is advised that image assets have a minimum size of 50 x 50 pixels or larger. This guideline can be found in the "Guidelines" section of the following help article: https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/image-profiles.html?lan...
I hope this help.
Hello @FreedomMarketin
According to the official documentation, for the successful application of a smart crop, it is advised that image assets have a minimum size of 50 x 50 pixels or larger. This guideline can be found in the "Guidelines" section of the following help article: https://experienceleague.adobe.com/docs/experience-manager-65/assets/dynamic/image-profiles.html?lan...
I hope this help.
Perfect! Thank you for the quick reply!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies