blob: e5b10c916e415b49f7a1f1526eefbd361685ed16 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
<title>WebP Encoding Options @ ImageMagick</title>
<meta name="application-name" content="ImageMagick" />
<meta name="description" content="Use ImageMagick® to create, edit, compose, or convert bitmap images. You can resize your image, crop it, change its shades and colors, add captions, among other operations." />
<meta name="application-url" content="https://imagemagick.org" />
<meta name="generator" content="PHP" />
<meta name="keywords" content="webp, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
<meta name="rating" content="GENERAL" />
<meta name="robots" content="INDEX, FOLLOW" />
<meta name="generator" content="ImageMagick Studio LLC" />
<meta name="author" content="ImageMagick Studio LLC" />
<meta name="revisit-after" content="2 DAYS" />
<meta name="resource-type" content="document" />
<meta name="copyright" content="Copyright (c) 1999-2019 ImageMagick Studio LLC" />
<meta name="distribution" content="Global" />
<meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
<meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
<link href="../www/webp.html" rel="canonical" />
<link href="../images/wand.png" rel="icon" />
<link href="../images/wand.ico" rel="shortcut icon" />
<link href="assets/magick.css" rel="stylesheet" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarsMagick" style="">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="../index.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item ">
<a class="nav-link" href="download.html">Download</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="command-line-tools.html">Tools</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="command-line-processing.html">Command-line</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="resources.html">Resources</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="develop.html">Develop</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php">
<input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
</form>
</div>
</nav>
<div class="container">
<script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3129977114552745"
data-ad-slot="6345125851"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</header>
<main class="container">
<div class="magick-template">
<div class="magick-header">
<p class="lead magick-description">ImageMagick's WebP image format accepts a plethora of encoding options as detailed below. As an example, suppose you are interested in these options:</p>
<ul>
<li>quality of 50</li>
<li>lossless compression</li>
</ul>
<p>Use this command:</p>
<pre class="highlight"><code>convert wizard.png -quality 50 -define webp:lossless=true wizard.webp
</code></pre>
<p>Here is a complete list of WebP encoding options:</p>
<div class=" able-responsive">
<table class="table table-sm table-striped">
<tr>
<td>alpha-compression=<var>value</var></td>
<td>encode the alpha plane: 0 = none, 1 = compressed.</td>
</tr>
<tr>
<td>alpha-filtering=<var>value</var></td>
<td>predictive filtering method for alpha plane: 0=none, 1=fast, 2=best.</td>
</tr>
<tr>
<td>alpha-quality=<var>value</var></td>
<td>the compression value for alpha compression between 0 and 100. Lossless compression of alpha is achieved using a value of 100, while the lower values result in a lossy compression. The default is 100.</td>
</tr>
<tr>
<td>auto-filter=<var>true, false</var></td>
<td>when enabled, the algorithm spends additional time optimizing the filtering strength to reach a well-balanced quality.</td>
</tr>
<tr>
<td>emulate-jpeg-size=<var>true, false</var></td>
<td>return a similar compression to that of JPEG but with less degradation.</td>
</tr>
<tr>
<td>filter-sharpness=<var>value</var></td>
<td>filter sharpness.</td>
</tr>
<tr>
<td>filter-strength=<var>value</var></td>
<td>the strength of the deblocking filter, between 0 (no filtering) and 100 (maximum filtering). A value of 0 turns off any filtering. Higher values increase the strength of the filtering process applied after decoding the image. The higher the value, the smoother the image appears. Typical values are usually in the range of 20 to 50.</td>
</tr>
<tr>
<td>filter-type=<var>value</var></td>
<td>filter type: 0 = simple, 1 = strong</td>
</tr>
<tr>
<td>image-hint=<var>default, photo, picture, graph</var></td>
<td>the hint about the image type.</td>
</tr>
<tr>
<td>lossless=<var>true, false</var></td>
<td>encode the image without any loss.</td>
</tr>
<tr>
<td>low-memory=<var>true, false</var></td>
<td>reduce memory usage.</td>
</tr>
<tr>
<td>method=<var>value</var></td>
<td>the compression method to use. It controls the trade off between encoding speed and the compressed file size and quality. Possible values range from 0 to 6. Default value is 4. When higher values are utilized, the encoder spends more time inspecting additional encoding possibilities and decide on the quality gain. Lower value might result in faster processing time at the expense of larger file size and lower compression quality.</td>
</tr>
<tr>
<td>preprocessing=<var>value</var></td>
<td>Choose from: 0=none, 1=segment-smooth, 2=pseudo-random dithering.</td>
</tr>
<tr>
<td>partitions=<var>value</var></td>
<td>progressive decoding: choose 0 to 3.</td>
</tr>
<tr>
<td>partition-limit=<var>value</var></td>
<td>Choose 0 for no quality degradation and 100 for maximum degradation.</td>
</tr>
<tr>
<td>pass=<var>value</var></td>
<td>maximum number of passes to target compression size or PSNR.</td>
</tr>
<tr>
<td>segment=<var>value</var></td>
<td>Choose from 1 to 4, the maximum numbher of segments to use.</td>
</tr>
<tr>
<td>show-compressed=<var>true, false</var></td>
</tr>
<tr>
<td>sns-strength=<var>value</var></td>
<td>the amplitude of the spatial noise shaping. Spatial noise shaping (SNS) refers to a general collection of built-in algorithms used to decide which area of the picture should use relatively less bits, and where else to better transfer these bits. The possible range goes from 0 (algorithm is off) to 100 (the maximal effect). The default value is 80. </td>
</tr>
<tr>
<td>target-size=<var>value</var></td>
<td>a target size (in bytes) to try and reach for the compressed output. The compressor makes several passes of partial encoding in order to get as close as possible to this target.</td>
</tr>
<tr>
<td>target-psnr=<var>value</var></td>
<td>desired minimal distortion.</td>
</tr>
<tr>
<td>thread-level=<var>value</var></td>
<td>enable multi-threaded encoding.</td>
</tr>
</table></div>
</div>
</div>
</main><!-- /.container -->
<footer class="magick-footer">
<p><a href="security-policy.html">Security</a>
<a href="architecture.html">Architecture</a>
<a href="links.html">Related</a>
<a href="sitemap.html">Sitemap</a>
<a href="webp.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico"/></a>
<a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="support.html">Donate</a>
<a href="https://imagemagick.org/script/contact.php">Contact Us</a>
<br/>
<small>© 1999-2019 ImageMagick Studio LLC</small></p>
</footer>
<!-- Javascript assets -->
<script src="assets/magick.js" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script>
</body>
</html>
<!-- Magick Cache 5th January 2019 11:43 -->