THE MEDIA NOTES / EXPORT

How to choose JPEG quality without guessing

Balance detail and file size with a small, repeatable comparison rather than choosing the highest number automatically.

Quality, dimensions and file size
These three properties are related, but none is interchangeable with another.

Separate resolution from compression

An image that is 3000 pixels wide remains 3000 pixels wide after a same-size JPEG export, but that does not mean every fine detail is unchanged. JPEG is a lossy format: it discards some visual information to reduce storage. Resolution describes the pixel grid; compression describes how that grid is represented in the file. A large image can be heavily compressed, and a smaller image can be encoded at a high quality setting.

Use a meaningful starting point

Lenslab offers High, Balanced and Compact quality settings. Start with Balanced for an ordinary sharing copy, then compare it with High if fine detail is important. The number is an encoder instruction, not a percentage of original detail retained. Browsers and encoders can produce different results from the same setting. There is no universal file-size target that makes sense for every portrait, screenshot, landscape and product image.

Inspect difficult areas

Look at hair, foliage, fine fabric, small text, high-contrast borders and smooth gradients. Compression can produce blockiness, halos or uneven transitions that are easy to miss in a tiny preview. Compare at a useful viewing scale and then at the size where the image will actually appear. A flaw that is visible only at extreme enlargement may not affect a small web thumbnail, while damaged lettering can be unacceptable even at normal size.

Understand why grain costs bytes

Added grain introduces local variation into areas that were previously smooth. That variation gives the encoder more detail to represent and can increase file size. A processed JPEG may therefore be larger than its source, even when both use the same dimensions. If your goal is a smaller file, reduce unnecessary grain before lowering quality aggressively. Compare the resulting image rather than assuming that all texture is worth the extra storage.

Avoid a chain of lossy exports

Each time you open a JPEG, edit it and save another JPEG, a new compression pass can introduce additional loss. Keep a source or working master and create final delivery copies from that version. If you want to compare three quality settings, export all three from the same source rather than using the first export as the input for the next. Naming the files clearly makes the comparison much more reliable.

Worked example: comparing three delivery copies

Suppose you are preparing a landscape for a web page. Create High, Balanced and Compact versions from the same source, then compare the tree branches, sky and distant buildings. Write down the actual file sizes rather than assuming a fixed relationship to the selected quality number. If Balanced looks the same at the intended display size and is substantially smaller, it may be the practical delivery choice. If Compact damages the sky gradient, reject it even if the size is attractive. Keep the High version only when its additional detail serves the destination. The exercise gives you evidence for this image instead of a rule that every future image must use the same setting.

Choose for the destination

A portfolio image, a small listing thumbnail and an archival master have different needs. Before delivery, check the destination’s accepted formats, dimensions and size limits. Many services re-encode uploaded pictures, so inspect the image after upload as well as before it. Lenslab’s JPEG export is a convenient derivative, not a replacement for your original. If you require transparency or a lossless editing master, retain a suitable source format outside the JPEG workflow.

A final review you can repeat

Before finishing this workflow, open the exact downloaded copy rather than relying only on the browser preview. Confirm the file name, format and intended destination. Look at the details discussed in this guide and compare them with your original. If the result is part of a batch, check that no failed or missing item has been mistaken for a completed file. Save any required originals and supporting notes separately.

If a setting does not serve the purpose of the image or clip, leave it off. A useful export is one that is readable, appropriate for its destination and accurately described. When you cannot verify an important property, keep that uncertainty explicit and use a more suitable tool or review process rather than making a stronger claim than the file supports.

Further reading: MDN image formats · MDN media recording