Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 19 Jun 2018, 09:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
How to Convert Images to WebP Format in Linux & HEIF format
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 1189
Location: Canada

PostPosted: Thu 11 Jan 2018, 09:50    Post subject:  How to Convert Images to WebP Format in Linux & HEIF format
Subject description: highly compressed files for use on the Web without quality loss
 

https://www.tecmint.com/convert-images-to-webp-format-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/downloads.webmproject.org/releases/webp/libwebp-0.6.1-linux-x86-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/gimp-2-10-2-released/
https://news.ycombinator.com/item?id=17125728

Last edited by labbe5 on Tue 22 May 2018, 16:01; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 12314
Location: Gatineau (Qc), Canada

PostPosted: Fri 12 Jan 2018, 00:02    Post subject:  

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
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1536
Location: Japan

PostPosted: Fri 12 Jan 2018, 02:27    Post subject:  

I use the (somewhat older) precompiled libwebp-0.4.1-linux-x86-32 from Google's https://storage.googleapis.com/downloads.webmproject.org/releases/webp/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
format_comparison.jpg
 Description   
 Filesize   131.06 KB
 Viewed   103 Time(s)

format_comparison.jpg

Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 12314
Location: Gatineau (Qc), Canada

PostPosted: Fri 12 Jan 2018, 05:10    Post subject:  

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.
clem-onojeghuo-111360-799x532-0quality.jpg
 Description   The original photograph (5616x3744 pixels) by clem onojeghuo can be found at
unsplash.com under number 111360.
 Filesize   8.5 KB
 Viewed   88 Time(s)

clem-onojeghuo-111360-799x532-0quality.jpg

clem-onojeghuo-111360-799x532-98quality.jpg
 Description   This one at 98 quality. At 100 quality, it is too big to be accepted by the forum.
 Filesize   221.33 KB
 Viewed   88 Time(s)

clem-onojeghuo-111360-799x532-98quality.jpg


_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0913s ][ Queries: 15 (0.0060s) ][ GZIP on ]