-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Blank colour svg injected as bg image #410
Comments
Can you show me the code you're using to output said image? |
Sure, here you go: In template
Component
|
This is a result of the lazy loading strategy that is being used which works fine for normal images, but not for images like SVGs that can be transparent in places. I'm looking into a solution that makes sense here. |
Addressed in the above commits. Craft CMS 3: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop as 1.6.56”, Then do a ….. Craft CMS 4: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop-v4 as 4.0.10”, Then do a ….. Craft CMS 5: You can try it now by setting your semver in your "nystudio107/craft-imageoptimize": "dev-develop-v5 as 5.0.3”, Then do a |
Describe the bug
After updating to version 5.0.2 images are getting a grey svg injected as a css background via the style attribute meaning images with a transparency show a grey background instead. (downgrading to 5.0.1 fixes the issue)
To reproduce
Steps to reproduce the behaviour:
Expected behaviour
This style attribute shouldn't get injected ('generatePlaceholders' setting is set to false)
Screenshots
resulting in
Versions
The text was updated successfully, but these errors were encountered: