![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ledger.corals.io/vendor/league/glide/docs/1.0/api/ |
--- layout: default title: Pixel Density --- # Pixel Density ## Device pixel ratio `dpr` The device pixel ratio is used to easily convert between CSS pixels and device pixels. This makes it possible to display images at the correct pixel density on a variety of devices such as Apple devices with Retina Displays and Android devices. You must specify either a width, a height, or both for this parameter to work. The default is 1. The maximum value that can be set for dpr is 8. ~~~ html <img src="kayaks.jpg?w=250&dpr=2"> ~~~ [](https://glide.herokuapp.com/1.0/kayaks.jpg?w=250&dpr=2)