1 2 3 4 5<!DOCTYPE html> 6<html lang="en"> 7<head> 8 <meta charset="utf-8" /> 9 <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> 10 <title>WebP Encoding Options @ ImageMagick</title> 11 <meta name="application-name" content="ImageMagick" /> 12 <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." /> 13 <meta name="application-url" content="https://imagemagick.org" /> 14 <meta name="generator" content="PHP" /> 15 <meta name="keywords" content="webp, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" /> 16 <meta name="rating" content="GENERAL" /> 17 <meta name="robots" content="INDEX, FOLLOW" /> 18 <meta name="generator" content="ImageMagick Studio LLC" /> 19 <meta name="author" content="ImageMagick Studio LLC" /> 20 <meta name="revisit-after" content="2 DAYS" /> 21 <meta name="resource-type" content="document" /> 22 <meta name="copyright" content="Copyright (c) 1999-2019 ImageMagick Studio LLC" /> 23 <meta name="distribution" content="Global" /> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" /> 25 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 26 <link href="../www/webp.html" rel="canonical" /> 27 <link href="../images/wand.png" rel="icon" /> 28 <link href="../images/wand.ico" rel="shortcut icon" /> 29 <link href="assets/magick.css" rel="stylesheet" /> 30</head> 31<body> 32 <header> 33 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> 34 <a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a> 35 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation"> 36 <span class="navbar-toggler-icon"></span> 37 </button> 38 39 <div class="navbar-collapse collapse" id="navbarsMagick" style=""> 40 <ul class="navbar-nav mr-auto"> 41 <li class="nav-item "> 42 <a class="nav-link" href="../index.html">Home <span class="sr-only">(current)</span></a> 43 </li> 44 <li class="nav-item "> 45 <a class="nav-link" href="download.html">Download</a> 46 </li> 47 <li class="nav-item "> 48 <a class="nav-link" href="command-line-tools.html">Tools</a> 49 </li> 50 <li class="nav-item "> 51 <a class="nav-link" href="command-line-processing.html">Command-line</a> 52 </li> 53 <li class="nav-item "> 54 <a class="nav-link" href="resources.html">Resources</a> 55 </li> 56 <li class="nav-item "> 57 <a class="nav-link" href="develop.html">Develop</a> 58 </li> 59 <li class="nav-item"> 60 <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a> 61 </li> 62 </ul> 63 <form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php"> 64 <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search"> 65 <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button> 66 </form> 67 </div> 68 </nav> 69 <div class="container"> 70 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 71 style="display:block" 72 data-ad-client="ca-pub-3129977114552745" 73 data-ad-slot="6345125851" 74 data-ad-format="auto"></ins> 75 <script> 76 (adsbygoogle = window.adsbygoogle || []).push({}); 77 </script> 78 79 </div> 80 </header> 81 <main class="container"> 82 <div class="magick-template"> 83<div class="magick-header"> 84<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> 85 86<ul> 87<li>quality of 50</li> 88<li>lossless compression</li> 89</ul> 90 91<p>Use this command:</p> 92 93<pre class="highlight"><code>convert wizard.png -quality 50 -define webp:lossless=true wizard.webp 94</code></pre> 95 96<p>Here is a complete list of WebP encoding options:</p> 97 98<div class=" able-responsive"> 99<table class="table table-sm table-striped"> 100 <tr> 101 <td>alpha-compression=<var>value</var></td> 102 <td>encode the alpha plane: 0 = none, 1 = compressed.</td> 103 </tr> 104 <tr> 105 <td>alpha-filtering=<var>value</var></td> 106 <td>predictive filtering method for alpha plane: 0=none, 1=fast, 2=best.</td> 107 </tr> 108 <tr> 109 <td>alpha-quality=<var>value</var></td> 110 <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> 111 </tr> 112 <tr> 113 <td>auto-filter=<var>true, false</var></td> 114 <td>when enabled, the algorithm spends additional time optimizing the filtering strength to reach a well-balanced quality.</td> 115 </tr> 116 <tr> 117 <td>emulate-jpeg-size=<var>true, false</var></td> 118 <td>return a similar compression to that of JPEG but with less degradation.</td> 119 </tr> 120 <tr> 121 <td>filter-sharpness=<var>value</var></td> 122 <td>filter sharpness.</td> 123 </tr> 124 <tr> 125 <td>filter-strength=<var>value</var></td> 126 <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> 127 </tr> 128 <tr> 129 <td>filter-type=<var>value</var></td> 130 <td>filter type: 0 = simple, 1 = strong</td> 131 </tr> 132 <tr> 133 <td>image-hint=<var>default, photo, picture, graph</var></td> 134 <td>the hint about the image type.</td> 135 </tr> 136 <tr> 137 <td>lossless=<var>true, false</var></td> 138 <td>encode the image without any loss.</td> 139 </tr> 140 <tr> 141 <td>low-memory=<var>true, false</var></td> 142 <td>reduce memory usage.</td> 143 </tr> 144 <tr> 145 <td>method=<var>value</var></td> 146 <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> 147 </tr> 148 <tr> 149 <td>preprocessing=<var>value</var></td> 150 <td>Choose from: 0=none, 1=segment-smooth, 2=pseudo-random dithering.</td> 151 </tr> 152 <tr> 153 <td>partitions=<var>value</var></td> 154 <td>progressive decoding: choose 0 to 3.</td> 155 </tr> 156 <tr> 157 <td>partition-limit=<var>value</var></td> 158 <td>Choose 0 for no quality degradation and 100 for maximum degradation.</td> 159 </tr> 160 <tr> 161 <td>pass=<var>value</var></td> 162 <td>maximum number of passes to target compression size or PSNR.</td> 163 </tr> 164 <tr> 165 <td>segment=<var>value</var></td> 166 <td>Choose from 1 to 4, the maximum numbher of segments to use.</td> 167 </tr> 168 <tr> 169 <td>show-compressed=<var>true, false</var></td> 170 </tr> 171 <tr> 172 <td>sns-strength=<var>value</var></td> 173 <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> 174 </tr> 175 <tr> 176 <td>target-size=<var>value</var></td> 177 <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> 178 </tr> 179 <tr> 180 <td>target-psnr=<var>value</var></td> 181 <td>desired minimal distortion.</td> 182 </tr> 183 <tr> 184 <td>thread-level=<var>value</var></td> 185 <td>enable multi-threaded encoding.</td> 186 </tr> 187</table></div> 188</div> 189 </div> 190 </main><!-- /.container --> 191 <footer class="magick-footer"> 192 <p><a href="security-policy.html">Security</a> • 193 <a href="architecture.html">Architecture</a> • 194 <a href="links.html">Related</a> • 195 <a href="sitemap.html">Sitemap</a> 196 197 <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> 198 199 <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • 200 <a href="support.html">Donate</a> • 201 <a href="https://imagemagick.org/script/contact.php">Contact Us</a> 202 <br/> 203 <small>© 1999-2019 ImageMagick Studio LLC</small></p> 204 </footer> 205 206 <!-- Javascript assets --> 207 <script src="assets/magick.js" crossorigin="anonymous"></script> 208 <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script> 209</body> 210</html> 211<!-- Magick Cache 5th January 2019 11:43 -->