Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Another behaviour for retina images

Started by Maxim Bazarov 9 years ago · 0 replies · 564 views
9 years ago

Grav automatically injects sizes="100vw" for retina images.
As a result a browser stretches image on full page width. In some cases it may be useful, but in many other it works not well.

Is it possible to tell Grav to change this behaviour and use sizes=“{REAL IMAGE WIDTH}px”?

https://www.dropbox.com/s/tb1tvqokyyfwx3q/image1.png?dl=0

Currently, to make it looking in valid way, I use media query to set sizes manually. But it's really annoying.

Thanks

last edited 02/16/18 by Maxim Bazarov

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 6 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 124 1 week ago
Support · by stell, 2 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 555 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago