Spanish Total.js
English
Documentation For AI agents
Contents

Choose the format and the quality

The format decides most of what a picture weighs. Choose it in Write as, and then the quality or the number of colours.

.md GitHub
On this page

The formats

Write asWhen to use it
The one each picture hasTo pack the pictures tighter without changing their format. GIF, TIFF and BMP become PNG, and HEIC becomes JPEG
JPEGPhotographs. Every app opens it. What is see-through goes on white
PNGDrawings, screenshots and logos. With all its colours it loses nothing
WebPWeb pages. Lighter than JPEG at the same look, and it keeps what is see-through
AVIFThe lightest of all, and the slowest to write. Recent systems and browsers show it

Pictures that move have their own page.

The quality

JPEG, WebP and AVIF leave out detail to weigh less. Quality goes from 1 to 100 and starts at 80.

QualityWhat you see
90 or moreHard to tell from the original, and not much lighter
From 70 to 89The same at a glance, and much lighter
From 45 to 69Lighter still. Fine detail starts to suffer
Less than 45As light as it goes, and it shows

To decide with your own eyes, compare a picture and move the quality while you look.

The colours of a PNG

PNG has no quality. What makes it far lighter is having fewer colours: choose in Colours of a PNG at most 256, 128, 64, 32 or 16.

It works well for screenshots and logos, and keeps what is see-through. In a photograph or a soft shade you may see steps from one colour to the next.

All of them keeps every colour and loses nothing.

The colour profile of the picture is kept in PNG, also with fewer colours, and in JPEG. WebP and AVIF are written without it.

When it cannot be lighter

If the copy has the same format and the same size in pixels, and it does not weigh less, nothing is written. The row says It is already as light as it gets.

With The one each picture has, a GIF, TIFF, BMP or HEIC needs another format. If it would be no lighter in it, nothing is written either, and the row says so, with the format to choose if you want it anyway.

When you choose another format or size, the picture is written even if it weighs more: a photograph written as PNG, for example. The row says Not lighter, with a plus sign, such as +120 %. This counts for In the place of the original too: the original goes to the trash.
Made in Europe