News for hackers. Stuff that matters.
Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by tinyspacewizard on Friday October 17, 2025 @12:04PM (#45618291)
What should we use instead?
Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by LeFantome on Friday October 17, 2025 @12:18PM (#45618487)
PNG
Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by _bent on Friday October 17, 2025 @03:16PM (#45620824)
For final export? AVIF, JpegXL, maybe even WebP (lossless mode).

PNG kinda sucks for high resolution stuff because decoding is extremely slow. The way PNG does lossless compression also only really works with flat graphic design, anything with gradients or texture blows up the file size.

Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by mikae1 on Saturday October 18, 2025 @04:28AM (#45625832)
>> What should we use instead?

> AVIF, JpegXL, maybe even WebP (lossless mode).

Definitely not lossless AVIF. It is less efficient than lossless WebP. WebP is supported everywhere, but is not much more efficient than optimized lossless PNG. Lossless JpegXL has the best lossless compression but can't be used for web without fallbacks.

So, for offline archival: JpegXL.

For web use without fallbacks: lossless WebP.

For web use with lossless WebP fallback: JpegXL.

Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by mikae1 on Saturday October 18, 2025 @04:31AM (#45625850)
>> What should we use instead?

> AVIF, JpegXL, maybe even WebP (lossless mode).

Definitely not lossless AVIF. It is less efficient than lossless WebP. WebP is supported everywhere, but is not much more efficient than optimized lossless PNG. Lossless JPEG XL has the best lossless compression but can't be used for web without fallbacks.

So, for offline archival: JPEG XL.

For web use without fallbacks: lossless WebP.

For web use with lossless WebP fallback: JPEG XL.

Re:Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG by Bender on Saturday October 18, 2025 @08:57AM (#45626986)
Generation Loss: JPEG, WebP, JPEG XL, AVIF [1]

Generation loss: FLIF vs WebP vs BPG vs JPEG vs MozJPEG [2]

[1] - https://www.youtube.com/watch?v=FtSWpw7zNkI

[2] - https://www.youtube.com/watch?v=YKmhZJ8H1Fc