How to Convert Images to WebP Format in Linux & HEIF format

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

How to Convert Images to WebP Format in Linux & HEIF format

#1 Post by labbe5 »

https://www.tecmint.com/convert-images- ... -in-linux/

One of the numerous best practices you will hear of, for optimizing your web-site performance is using compressed images. In this article, we will share with you a new image format called webp for creating compressed and quality images for the web.

WebP is a relatively new, open source image format that offers exceptional lossless and lossy compression for images on the web, designed by Google. To use it, you need to download pre-compiled utilities for Linux, Windows and Mac OS X.


First, look for webp in standard repositories (apt install webp...) or in PPM.

Use this command if webp is not in standard repositories : $ wget -c https://storage.googleapis.com/download ... -32.tar.gz

And follow instructions, clicking the link above.

Further reading about HEIF format (High Efficiency Image Format) :
https://www.gimp.org/news/2018/05/20/gi ... -released/
https://news.ycombinator.com/item?id=17125728
Last edited by labbe5 on Tue 22 May 2018, 20:01, edited 1 time in total.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello labbe5.

Thanks for the reminder.

A few weeks ago, I compiled Google's webp lib and utilities for 32-bit xenialPup-7 /
StretchPup-7, here.

MochiMoppei also did some work on this picture format. Please see here.

IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#3 Post by MochiMoppel »

I use the (somewhat older) precompiled libwebp-0.4.1-linux-x86-32 from Google's https://storage.googleapis.com/download ... index.html

WebP is a good choice for document archiving as is produces very small files. Much better than JPG.
Tools used for screenshot:
PNG => JPG: mtpaint "Save As JPEG" quallity 0
PNG => WebP: cwebp -q 0 file.png -o file.webp
Attachments
format_comparison.jpg
(131.06 KiB) Downloaded 317 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

With all due respect, MochiMoppei,

why would a user wish to save a picture with a quality ratio of zero (0)?

Or perhaps you are using this 0 quality picture only as a comparative argument?

In other words, you are saying that for the same picture, from a png format in "100"
quality to a webp format at "0" quality, there is a space savings of 90 %.

If I may, the reduction in quality is ok for some drawings and some text-as-picture,
but not if one values the artistic value of a photograph. (Please see attached.)

TIA.
Attachments
clem-onojeghuo-111360-799x532-0quality.jpg
The original photograph (5616x3744 pixels) by clem onojeghuo can be found at
unsplash.com under number 111360.
(8.5 KiB) Downloaded 299 times
clem-onojeghuo-111360-799x532-98quality.jpg
This one at 98 quality. At 100 quality, it is too big to be accepted by the forum.
(221.33 KiB) Downloaded 300 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#5 Post by greengeek »

In this instance - isn't file size the important determinant rather than image % quality?

I am keen to compare this new webp format. Is it proprietary or freely useable??

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#6 Post by MochiMoppel »

greengeek wrote:In this instance - isn't file size the important determinant rather than image % quality?
Yes
Is it proprietary
No
or freely useable??
Yes

Post Reply