Glossary

What is srcset?

srcset is an img attribute that lists the same picture at several widths, so the browser downloads the smallest one that still looks sharp on that screen. It works together with the sizes attribute, which says how wide the image will be on the page.

How Fileboy does it

The SDKs build it for you: buildImageSrcset makes one image URL per width (320, 640, 960, 1280 and 1920 unless you choose) and never makes an image bigger than its source. The React library's Image component takes widths and sizes.

In the docs

The transformation pipeline · The React library

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.