How to output a lossless webp image?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mortoray
Posts: 17
Joined: 2014-02-12T21:36:17-07:00
Authentication code: 6789

How to output a lossless webp image?

Post by mortoray »

How can I tell `convert` that I want a lossless WEBP file as output? It looks like it always uses lossy mode.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: How to output a lossless webp image?

Post by dlemstra »

You should use:

Code: Select all

convert input.png -define webp:lossless=true output.webp
You can find more options on this page: http://www.imagemagick.org/script/webp.php.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply