question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High density screen (retina) support

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davecranwellcommented, Oct 14, 2015

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 support picture.

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.

0reactions
gasmancommented, Jun 28, 2017

Covered by #285 and #3573

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found