Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Another behaviour for retina images

Started by Maxim Bazarov 9 years ago · 0 replies · 505 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 Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 101 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 4 weeks ago