blob: 228738a23368dfc3f77a3de50af6aacb09ae8475 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<title>ImageMagick: WebP Encoding Options</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<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=""/>
<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-2016 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="icon" href="../images/wand.png"/>
<link rel="shortcut icon" href="../images/wand.ico"/>
<link rel="stylesheet" type="text/css" href=",400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700">
<link rel="stylesheet" href="css/magick.css"/>
<div class="main">
<div class="magick-masthead">
<div class="container">
<script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});
<nav class="magick-nav">
<a class="magick-nav-item " href="../index.html">Home</a>
<a class="magick-nav-item " href="binary-releases.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="api.html">Develop</a>
<a class="magick-nav-item " href="">Search</a>
<a class="magick-nav-item pull-right" href="">Community</a>
<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>
<li>quality of 50</li>
<li>lossless compression</li>
<p>Use this command:</p>
convert wizard.png -quality 50 -define webp:lossless=true wizard.webp
<p>Here is a complete list of WebP encoding options:</p>
<div class=" able-responsive">
<table class="table table-condensed table-striped">
<td>encode the alpha plane: 0 = none, 1 = compressed.</td>
<td>predictive filtering method for alpha plane: 0=none, 1=fast, 2=best.</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>
<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>
<td>emulate-jpeg-size=<var>true, false</var></td>
<td>return a similar compression to that of JPEG but with less degradation.</td>
<td>filter sharpness.</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>
<td>filter type: 0 = simple, 1 = strong</td>
<td>image-hint=<var>default, photo, picture, graph</var></td>
<td>the hint about the image type.</td>
<td>lossless=<var>true, false</var></td>
<td>encode the image without any loss.</td>
<td>low-memory=<var>true, false</var></td>
<td>reduce memory usage.</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>
<td>Choose from: 0=none, 1=segment-smooth, 2=pseudo-random dithering.</td>
<td>progressive decoding: choose 0 to 3.</td>
<td>Choose 0 for no quality degradation and 100 for maximum degradation.</td>
<td>maximum number of passes to target compression size or PSNR.</td>
<td>Choose from 1 to 4, the maximum numbher of segments to use.</td>
<td>show-compressed=<var>true, false</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>
<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>
<td>desired minimal distortion.</td>
<td>enable multi-threaded encoding.</td>
<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="architecture.html">Architecture</a>
<p><a href="webp.html#">Back to top</a>
<a href=";search=0x89AB63D48277377A">Public Key</a>
<a href="">Contact Us</a></p>
<p><small>© 1999-2016 ImageMagick Studio LLC</small></p>
</div><!-- /.container -->
<script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="../js/magick.html"></script>