blob: 724ce2be06f415df6a44294546e3da3988265c81 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>WebP Encoding Options @ ImageMagick</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="application-name" content="ImageMagick"/>
<meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves."/>
<meta name="application-url" content="https://www.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-2017 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 rel="canonical" href="https://www.imagemagick.org/script/webp.html"/>
<link rel="icon" href="../images/wand.png"/>
<link rel="shortcut icon" href="../images/wand.ico"/>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700" />
<link rel="stylesheet" href="css/magick.css"/>
</head>
<body>
<div class="main">
<div class="magick-masthead">
<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>
<nav class="magick-nav">
<a class="magick-nav-item " href="../index.html">Home</a>
<a class="magick-nav-item " href="download.html">Download</a>
<a class="magick-nav-item " href="command-line-tools.html">Tools</a>
<a class="magick-nav-item " href="command-line-processing.html">Command-line</a>
<a class="magick-nav-item " href="resources.html">Resources</a>
<a class="magick-nav-item " href="develop.html">Develop</a>
<a class="magick-nav-item " href="https://www.imagemagick.org/script/search.php">Search</a>
<a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
</nav>
</div>
</div>
<div class="container">
<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>
convert wizard.png -quality 50 -define webp:lossless=true wizard.webp
</pre>
<p>Here is a complete list of WebP encoding options:</p>
<div class=" able-responsive">
<table class="table table-condensed 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>
<footer class="magick-footer">
<p><a href="support.html">Donate</a>
<a href="sitemap.html">Sitemap</a>
<a href="links.html">Related</a>
<a href="security-policy.html">Security</a>
<a href="architecture.html">Architecture</a>
</p>
<p><a href="webp.html#">Back to top</a>
<a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
<a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p>
<p><small>© 1999-2017 ImageMagick Studio LLC</small></p>
</footer>
</div><!-- /.container -->
<script src="https://localhost/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="../js/magick.html"></script>
</div>
</body>
</html>
<!-- Magick Cache 26th March 2017 16:38 -->