Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Another behaviour for retina images

Started by Maxim Bazarov 9 years ago · 0 replies · 634 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago