Image formats

JPEG: what it is and how to serve it

JPEG is the format every device, browser and upload form accepts, which is why it is still the safe choice for photographs you send to other people.

JPEG

  • Files.jpg and .jpeg
  • Fileboy reads itYes
  • Fileboy writes itYes

What it is

JPEG is a lossy format designed for photographs. Each time a JPEG is saved again it loses a little more detail, and it has no transparency.

It makes larger files than WebP or AVIF at the same quality, but it is read and written by essentially everything made in the last thirty years.

Browser support

Every browser, phone, email client, editor and operating system shows JPEG. It is the format most upload forms accept.

Serve it with Fileboy

Media typeimage/jpeg
Read by the image pipelineYes
Written by the image pipelineYes

Fileboy reads and writes JPEG. Ask for it with format:jpeg when something downstream, such as a social network's link preview or an email, needs a format that is certain to open.

With no quality transform, JPEG output is made at quality 85; use quality:70 to 80 for smaller files. JPEG can't be transparent, so rounded corners and padding show a background colour, white unless you set one with ~background:.

An image URL
https://api.fileboy.io/images/get/FILE_ID?transform=resize:1200x630;format:jpeg;quality:80

Free tools for JPEG

Common questions

Is it JPG or JPEG?

The same format. The three-letter .jpg extension is a leftover from systems that allowed only three letters. Fileboy accepts format:jpeg and format:jpg.

Does a transformed JPEG keep its EXIF data?

No. Every transformed copy is re-encoded without EXIF (including GPS location) and colour profiles. The original upload keeps its metadata, and phone photos are turned the right way up first.

Other 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.