Closed jeffpaul closed 4 years ago
Looks like we're referencing v2.0 of their API: https://github.com/10up/classifai/blob/bdee8d423393123dbf6602647cd049b38cd89c0d/includes/Classifai/Providers/Azure/SmartCropping.php#L29
They've since updated to v2.1, v3.0, and have a preview up for v3.1.
Not seeing any major announcements on their blog: https://azure.microsoft.com/en-us/blog/topics/cognitive-services/
Well that's a little annoying, maybe we should bump to 3.0 for all of the different endpoints we're using?
@helen that's at least worth researching. Also credit to @oscarssanchez for helping call out this issue and provide good reproduction steps.
Describe the bug I've tested ClassifAI 1.5.1 on WordPress 5.5.1, 5.4, and 5.3 and am seeing that image tags and alt text work as expected (yay!) but the smart cropping feature isn't providing the desired result (boo!).
Steps to Reproduce
Expected behavior Resulting crop would more closely match what Azure Computer Vision demonstrates on their site:
Screenshots See in-line in this issue.
Environment information
ClassifAI image processing settings:
Additional context
I'll try and dig up the Azure API docs to see if something changed since our original implementation, but open to other triaging to help on this.