-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Craft 4 & automatically SVG transforms in the CP #356
Comments
You should be able to disable the transformation of SVG images via the OptimizedImages field settings. Does that not work for you? |
@khalwat Thanks for the reply |
Thumbnail transformation is intercepted by EVENT_TRANSFORM_IMAGE and I don't see a way to turn it off for the auto-transforms in the CP |
That's a good idea for a feature flag: the ability to disable transforms for CP requests |
@Romanavr shouldn't thumbnails be intercepted by |
There is a problem with regular SVG images as well (not thumbnails) |
Describe the bug
I noticed a bug that every time when entering any entry in the CP where the SVG image is used, CraftCMS tries to transform it and thus causes an error. StrackTrace errors in this case leads to the plugin (see logs).
At the moment, I don't have any transforms for assets.
FieldType for images -> just AssetField, not OptimizeField.
The image is stored on S3, Sharp is selected as a transformer.
Tested on 2 sites with the same version of Craft & plugin - in both cases, SVG images triggers an error
To reproduce
In any entry, add an asset field and upload an image in SVG format
Refresh page
Check the logs
Expected behaviour
There must be no transformation
Screenshots
Check logs
Versions
trace.log <- HERE
The text was updated successfully, but these errors were encountered: