Skip to content

Commit

Permalink
WebP lossless explainer
Browse files Browse the repository at this point in the history
  • Loading branch information
georges-gomes committed Sep 19, 2023
1 parent 92fcf66 commit 58220cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/www/public/features/optimize-images/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ will become
</picture>
```

If the original image is lossless (`PNG`) then:
- The `AVIF` image set will be compressed with very high quality settings.
If the original image is lossless (`PNG` or `WebP lossless`) then:
- The `WebP` image set will be compressed with [near_lossless option](https://sharp.pixelplumbing.com/api-output#webp).
- No `AVIF` image set will be created because AVIF lossless is not very good [(1)](https://www.reddit.com/r/jpegxl/comments/l9ta2u/how_does_lossless_jpegxl_compared_to_png/) [2](https://twitter.com/jonsneyers/status/1346389917816008704?s=19).

If the original image is lossly (`JPEG`) then:
If the original image is lossly (`JPEG` or `WebP lossly`) then:
- The `AVIF` image set will be compressed with normal quality settings.
- The `WebP` image set will be lossly compressed.

0 comments on commit 58220cc

Please sign in to comment.