Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Another behaviour for retina images

Started by Maxim Bazarov 9 years ago · 0 replies · 531 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 blu3prince, 4 days ago
1 68 4 hours ago
Support · by complanar, 7 days ago
6 157 2 days ago
Support · by Rick Beebe, 7 days ago
2 116 3 days ago
Support · by alex, 5 days ago
2 101 4 days ago
Support · by Marcel, 2 weeks ago
1 152 4 days ago