Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test a website for Retina on Windows without an actual Retina display?

Is there a way to simulate a Retina display on Windows to test a website for HiDPI displays such as Retina?

I run Windows on a standard 24" 1920x1080 monitor. Last night I checked out my website on a friends brand new 15" Retina MacBook Pro and the graphics looked all blurry (far worse than on a regular 15 inch MacBook), while the font was super crisp and sharp, making the logo appear even worse because of the direct comparison.

I have followed this tutorial to make my website Retina ready:

http://line25.com/tutorials/how-to-create-retina-graphics-for-your-web-designs

I used the retina.js approach since I don't have any background images.

Is there any way for me to test if this actually works? Obviously I could ask my friend to use his Retina Notebook but that is not a feasible workflow for me. I want to be able to at least roughly test websites for Retina compatibility it in my own environment.

like image 901
Alexander Rechsteiner Avatar asked Mar 21 '13 15:03

Alexander Rechsteiner


People also ask

What is the difference between retina display and normal?

How are Macs with Retina Display Different from Non-retina Macs? Aside from having a higher pixel density, Macs with retina display also have a wider viewing angle than non-retina Macs. The viewing angle is the maximum angle from which you can view your screen without noticing any distortions.

What qualifies as retina display?

Retina is a trademarked term that refers to any IPS LCD or OLED display with a pixel density high enough that Apple has determined that your eyes won't be able to make out those pixels at a certain viewing distance.


2 Answers

about:config hack on Firefox

You actually can using Firefox:

  1. Go to "about:config"
  2. Find "layout.css.devPixelsPerPx
  3. Change it to your desired ratio (1 for normal, 2 for retina, etc. -1 seems to be Default.)

Screenshot:


(source: staticflickr.com)

Refresh your page - boom, your media query has now kicked in! Hats off to Firefox for being awesome for web developing! Heads up, not only will the website now be boosted to twice the size, the Firefox UI will also be doubled. This doubling or zooming is necessary, as that's the only way you'll be able to examine all the pixels on a standard pixel ratio screen.

This works fine on Windows 7 with Firefox 21.0, and also on Mac OS X with Firefox 27.0.1.

If you're not using media queries and other more advanced logic (i.e. you're feeding everyone the HiDPI images), you can just zoom in with your browser to 200%. The Chrome emulation is a helpful tool as well as it kicks in media queries, but because it prevents zooming, you can't examine image quality.

Zooming on Firefox & Edge

Currently on Firefox and Edge, if you zoom it triggers dppx-based media queries. So this easier approach may be sufficient, but be aware that the functionality is reported as a "won't fix" bug for Firefox, so this could change.

like image 60
andrewb Avatar answered Oct 21 '22 01:10

andrewb


In Google Chrome version "33.0.1720.0 Canary", you can now emulate devices like iPhone5 and others with a great set of parameters like "Device pixel ratio", "android font metrics" and "Viewport emulation".

There's no need for that Firefox hack anymore - hard to work with, anyway.

Thanks Google dev team! !:)

like image 25
Urb Gim Tam Avatar answered Oct 21 '22 00:10

Urb Gim Tam