View previous topic :: View next topic |
Author |
Message |
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2163
|
Posted: Fri Oct 25, 2024 11:42 am Post subject: webp and avif profile use flags |
|
|
While trying to find space-efficient scanned-image compression, I came across webp and avif, which IIUC will be the next great things, the first because Google says so, and the second because it's fully open source. So I was surprised that my setup didn't already include support, as neither use flag appears to be in the desktop profile. I appreciate this is both a technical impact to change a profile, and a "political" decision over what should be defaults.
FWIW I changed my make.conf USE flags (I know the new improved way is "*/* foo" in package.use, but old habits die hard, and anyway make.conf describes my system setup, so that seems a good home), and not too much recompilation. _________________ Greybeard |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3665 Location: Rasi, Finland
|
Posted: Fri Oct 25, 2024 1:50 pm Post subject: |
|
|
avif is the image format based on av1 video codec, IIRC.
Out of interest, have you tried jpegxl? _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2163
|
Posted: Fri Oct 25, 2024 6:43 pm Post subject: |
|
|
Zucca, thanks for the pointer to jpegxl - I'd missed that. More recompilations...
As a KDE user, it appears I also need to install dev-qt/qtimageformats to get webp support in Skanpage. It seems to be optional.
A bit of testing on scanned printed letters from my bank shows that webp and avif files are about 60-70% of the size of the jpeg for the same dpi, and slightly subjectively clearer - sharper edges to the characters. Sadly, when I used tesseract to convert the webp pages to a pdf, the images got converted to standard jpeg - I guess that's inevitable. I'll see if jpegxl changes that. _________________ Greybeard |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2163
|
Posted: Fri Oct 25, 2024 6:57 pm Post subject: |
|
|
OK, some sizes. I'm not impressed by jpeg-xl. Looks like something in Skanpage or kimageformats is suboptimal. (Now we know why it's "XL" - extra large )
This is an A4 300dpi colour scan, mostly black & white, a logo, some QR codes, the rest text, some in reverse video:
Code: | webp 403.2 Kib
avif 482.7 KiB
jpg 685.3 KiB
jxl 1007.2 Kib |
<edit>
And to confound things, the cxjl lossless jpeg->jpex-xl converter halves the size, though it's still bigger than the other two, at 489.3 KiB _________________ Greybeard |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3397
|
Posted: Fri Oct 25, 2024 7:25 pm Post subject: |
|
|
Webp is already widely used on the internet, so yes, it does have a pretty good chance to be the jpg killer. _________________ Make Computing Fun Again |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|