Device pixel ratio.
dpr parameter provides a means to multiply image dimensions in order to translate logical pixels (also 'CSS pixels') into physical pixels. The device pixel ratio is therefore the ratio between physical pixels and logical pixels.
- Physical Resolution: 960 x 640
- Logical Resolution: 480 x 320
Other devices report varying device pixel ratios, including non-integer ones. For example, the Nokia Lumia 1020 reports
1.6667, whereas the Samsung Galaxy S4 reports
value may be any number between 1 and 10.
Click the links to view the transformed image using a demo Fastly IO service.