zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
326 stars 18 forks source link

Have you considered changing wallpaper file format to JPEG-XL? #120

Open p4vook opened 1 year ago

p4vook commented 1 year ago

I know, I know. Yet another change would be just a bit painful. But it has some upsides:

  1. (probably the most important one). The AVIF encoder you currently use is painfully slow. It took more than 1 CPU-day (!!) on Intel Tiger Lake CPU at 2.8 GHz to convert Mojave wallpaper. That's unacceptable to me. In comparison, JPEG-XL set to lossless converted the same wallpaper in under 10 (!!) CPU-minutes, while achieving comparable to AVIF file size (less than +35%). That's more than a 21600% performance improvement!.
  2. Great lossless compression. JPEG-XL is considered to be best-in-class lossless image codec (see https://docs.google.com/spreadsheets/d/1ju4q1WkaXT7WoxZINmQpf4ElgMD2VMlqeDN2DuZ6yJ8/edit?usp=sharing).
  3. Really clever encoding system, which allows for large detail-rich art to be encoded in under 2KB size (!) (see examples at https://jpegxl.info/art/)
  4. "Out-of-the-box" support of extremely large image sizes (>8K), which might be a nice feature in the near future.

JPEG XL has all the features cool codecs have today, while being royalty-free (just like AVIF) and efficient (both in size and performance). What do you think?

zzag commented 1 year ago

I'll consider it. FTR kdynamicwallpaperbuilder has a speed option, not sure if it's mentioned in the docs. Check kdynamicwallpaperbuilder --help for more details.

zzag commented 1 year ago

https://github.com/zzag/plasma5-wallpapers-dynamic-extras/blob/master/dynamicwallpaperconverter#L133 nvm, --speed is not wired in.