High density screen (retina) support
See original GitHub issueI think that it would be helpful to support high density images perhaps in the wagtail images tag so an image can appear crisp on HDPI devices such as phones and newer computers.
For example:
{% image profile_image fill-200x200-c90-hdpi %}
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
5 Ways to Support High-Density Retina Displays - SitePoint
5 Ways to Support High-Density Retina Displays · 1. Use SVGs and CSS3 Effects · 2. Use Webfonts Icons · 3. Use High-Resolution...
Read more >Retina / High-Density Display Images in Email Marketing
First, high-density displays or Retina displays, as Apple markets them, are generally acknowledged to have a physical pixel density of greater than 200...
Read more >How Pixel Density Works in the Age of 4K | EIZO
Confused about HiDPI and Retina display? ― Understanding pixel density in the age of 4K ... Approach to display resolution changing with high...
Read more >Retina display - Wikipedia
Retina Display is a brand name used by Apple for its series of IPS LCD and OLED displays that have a higher pixel...
Read more >Understanding Pixel Density, Resolution and Retina Displays
“High DPI” is generally acknowledged to be any device with a display density of 200 pixels per inch or greater.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created a responsive image tag for another project, the code for which is here (I’ve quickly copied this from another codebase and stripped out the stuff which is private, therefore this gist is untested, be warned): https://gist.github.com/davecranwell/baf42b089d71b94fd229. It’s basically a clone of wagtail’s own
{% image %}
tag but with responsive features.It’s intended for use with picturefill (http://scottjehl.github.io/picturefill/) so supports 2x images through the
srcset
attribute. It doesn’t currently supportpicture
.One significant problem with this tag is that it immediately generates all the various image sizes you define in your
srcset
, the instant the tag is run during template compilation. I believe this is problematic for sites hosting their images off-server e.g S3, where images renditions need to be rendered offline.You may find this tag is suitable for your needs though.
Covered by #285 and #3573