-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image type enforcement to Entity Brand asset field #1322
Comments
Technically, depending on your underlying setup, using an SVG should actually work. Are you using GD or ImageMagick? |
Craft's System Report says Image driver & version: Imagick 3.7.0 (ImageMagick 6.9.10-23) I was just able to recreate the error in the logs in a staging environment. OBGlogo_rgb.svg is a file uploaded to /assets/seo-images by the SEOmatic's Entity Brand field. Queue Log
Web Log
This site also has ImageOptimize installed, but it does not have a field on the /assets/seo-images volume so it shouldn't touch this image. ImageOptimize also does not have an active image processor for SVGs configured. SVGO is not available on this server and all the ImageOptimize fields are configured to ignore SVGs so this shouldn't be a problem. Does SEOmatic use ImageOptimize if it's installed? Maybe SEOmatic is assuming too much about the configured ImageOptimize capabilities? |
hmmmm, I will have a look at this, something isn't working as expected. I don't think ImageOptimize is relevant here though. |
Is your feature request related to a problem? Please describe.
The SEOmatic > Site Settings > Identity > Entity Brand asset field notes "The image must be in JPG, PNG, or GIF format.", but it doesn't enforce this if an unsupported asset is used. When an SVG is uploaded everything seems successful in the CP, but the queue is gets 2-6ish "Generating image transform” jobs added to it quite often, sometimes several times per minute which bogs down the server CPU. There were some errors in the logs related to SEOmatic and the uploaded SVG so that's how I tracked down this issue (wish I had the exact log message, but it's since been overwritten.)
Describe the solution you would like
When selecting/uploading an unsupported image format to the Entity Brand field an error should be thrown and the image should not be used.
The text was updated successfully, but these errors were encountered: