How to handle 2x retina source images with @sveltejs/enhanced-img? #12765
Unanswered
benallfree
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If
foo.png
is 2x retina image then<enhanced:image src="./foo.png" />
will render theimg
tag with the intrinsic width and height, which is incorrect.Has anyone else run into this? If I patch the package to set the CSS/media pixel width and height, things come out correctly.
Beta Was this translation helpful? Give feedback.
All reactions