Image formats
PNG: what it is and how to serve it
PNG keeps every pixel and supports transparency, which suits screenshots, logos and interface graphics. For photographs it is rarely the right size.
PNG
- Files.png
- Fileboy reads itYes
- Fileboy writes itYes
What it is
PNG is a lossless format: what you save is exactly what you get back. It has full transparency and handles flat colour and sharp edges well.
Photographs have so much fine variation that PNG files of them are very large, often several times a JPEG's size.
Browser support
Every browser and almost every program shows PNG, and it is the usual format for images with transparency that must work everywhere.
Serve it with Fileboy
| Media type | image/png |
|---|---|
| Read by the image pipeline | Yes |
| Written by the image pipeline | Yes |
Fileboy reads and writes PNG. PNG has no quality setting in Fileboy, so the quality transform does nothing to it, and a PNG it writes can come out larger than yours.
For a smaller file that keeps transparency, ask for WebP with lossless (exact pixels) or lossy, and keep the PNG as your original.
https://api.fileboy.io/images/get/FILE_ID?transform=resize:800x_;format:pngFree tools for PNG
Common questions
Why is my PNG so big?
PNG stores every pixel, so a photograph or a screenshot with lots of detail makes a large file. Save a photo as JPEG, WebP or AVIF instead, or a graphic as lossless WebP.
Other formats
AVIF · WebP · JPEG · GIF · All formats
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.