Tesing _lossless_ optimizing #Mastodon's media_attachments folder from an export https://docs.joinmastodon.org/user/moving/#export i.e. from https://mastodon.social/@aslakr/media

- Original size of media_attachments: 576M

- After a simple `oxipng --alpha` on all the PNGs: 541M

- Using `oxipng --alpha --strip pHYs,eXIf --zopfli` on PNGs: 539M

- Losslessly convert to JPEG XL using `cjxl -e 10 -d 0` on all JPEGs: 500M

- Lossless convert all PNG to JPEG XL: 453M

#JPEGXL #PNG #cjxl #oxipng

Moving or leaving accounts - Mastodon documentation

Take your information and do what you want with it.

Just throwing into the room: Unraid x Oxipng anyone?

Storing an image and immediately getting it optimized by thicc server would be sick ngl.

Unfortunately both are fairly niche and I can't find an existing plugin for that.
Maybe I'll look into it down the line.

#unraid #oxipng #optipng #nas

I love when you create an issue on GitHub, project owner isn't a dick, and you random guys brainstorm together on if and what's the best way to implement said feature.

Shoutout to #oxipng https://github.com/oxipng/oxipng btw, which rt even your mom should be using!

#foss #floss #opensource #github #andrews05 #collaboration #png #image #compression #gzip

GitHub - oxipng/oxipng: Multithreaded PNG optimizer written in Rust

Multithreaded PNG optimizer written in Rust. Contribute to oxipng/oxipng development by creating an account on GitHub.

GitHub

Oppdatering av #Zopfli i #oxipng https://github.com/shssoichiro/oxipng/releases/tag/v9.1.5 dvs. bruke `-Z` / `--zopfli`, reduserte tida brukt på komprimering betraktelig.

Eks. en PNG gikk fra å bruke 70 s til 10 s.

Release v9.1.5 · shssoichiro/oxipng

[Feature] Add --sequential option to process files sequentially rather than in parallel. [Performance] Update to latest Zopfli with greatly improved performance. [Improvement] Reduce memory usage. ...

GitHub

Forøvrig, "faksimilen" er en 2 bits #PNG med 3 farger som #oxipng https://github.com/shssoichiro/oxipng med `Z`-opsjonen klarer å komprimere til ca 120 kB i løpet av 1 min (!)

Med cjxl https://github.com/libjxl/libjxl med `-d 0`, dvs. lossless (uten tap) og med `--effort` satt til foreløpig maks (10), så blir resultatet en JPEG XL på 28 kB i løpet av ca 1 min.

Istedenfor diller man med #webp pga internkrangling i Google.

GitHub - shssoichiro/oxipng: Multithreaded PNG optimizer written in Rust

Multithreaded PNG optimizer written in Rust. Contribute to shssoichiro/oxipng development by creating an account on GitHub.

GitHub

Et skjermbilde https://mastodon.social/@aslakr/113135218390547543 optimalisert med `oxipng -Z` gir 85 314 byte (≈ 85 kB).

Samme bilde konvertert (uten tap/lossless) (vha `cjxl -q 100`) til JPEG XL gir 23 571 byte (≈ 24 kB).

Og JPEG XL enkodere er bare i begynnelsen på optimalisering.

De folka hos #Google som blokkerer JPEG XL i #Chromium med venner, fordi de elsker hjertbarnet #webp, burde få buksevann.

#JpegXL #png #cjxl #oxipng #Chrome

Packages created for this, #oxipng and #scour :)

EDIT: Seems to be working fine :)

@autolycus @atoponce Have you tried #OxiPNG? Sometimes it does wonders. https://squoosh.app has it for quick testing.
Squoosh

Squoosh is the ultimate image optimizer that allows you to compress and compare images with different codecs in your browser.

Today I've tested #oxipng, a multithreading PNG optimizer. It found the same parameters like #optipng but of course way faster.

https://github.com/shssoichiro/oxipng

GitHub - shssoichiro/oxipng: Multithreaded PNG optimizer written in Rust

Multithreaded PNG optimizer written in Rust. Contribute to shssoichiro/oxipng development by creating an account on GitHub.

GitHub