Fixes azure storage compatibility issue with classifai. #250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR resolves the compatibility issue between ClassifAI and Microsoft Azure Storage.
It would resolve #201 .
Description of the Change
When images are added through the media gallery and Azure Blob Storage is used the images are not correctly smart cropped and the alt tags are not generated. This is due to the smart cropping and tagging happening after the image has been uploaded to Azure. By adjusting the priority of the filters to make sure smart cropping happens before the alt tags are generated it means that the image is smart cropped correctly with alt tags generated before sending the image to Azure.
Benefits
New images are now added and smart cropped correctly before sending to Azure Blob Storage via the plugin https://github.com/10up/windows-azure-storage. All tags were generated correctly and the correct url generated in the media gallery.
Possible Drawbacks
The smart cropping will not work locally as it needs to be from a publicly accessible url. The image will be correctly tagged and upload to Azure but not with the smart cropped image.
Verification Process
This only works on a publicly accessible site.
Checklist: