Glossary

What is Device pixel ratio?

Device pixel ratio (DPR) is how many physical screen pixels sit across one CSS pixel. A 2x screen needs an image twice as wide to look sharp at the same size on the page.

How Fileboy does it

The dpr transform doubles (or multiplies by any number from 0.1 to 5) every pixel size in the chain, so resize:200x200;dpr:2 is a 400 by 400 image. Sizes are still capped after multiplying, so resize stops at 4000px.

In the docs

Image transformations

Add Fileboy to your next project

We built Fileboy to stop rebuilding file handling for every app. Create an app, paste your key and upload a file. The free plan needs no card.