blob: 7f1d2f817a845e7d799242ba7f00b5b4906629db [file] [log] [blame]
Cristy594d2772015-11-15 10:47:42 -05001
2
3
4
cristy29dc8652015-05-12 16:26:21 +00005<!DOCTYPE html>
cristyd2432012015-05-04 23:15:15 +00006<html lang="en">
cristy6d953db2013-02-18 16:43:41 +00007<head>
Cristy912a9222016-06-17 15:37:28 -04008 <meta charset="utf-8" />
Cristy3b0b58d2016-11-06 07:40:23 -05009 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10 <meta http-equiv="x-ua-compatible" content="ie=edge" />
Cristy6549abb2016-11-10 08:25:55 -050011 <title>WebP Encoding Options @ ImageMagick</title>
Cristy594d2772015-11-15 10:47:42 -050012 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
13 <meta name="application-name" content="ImageMagick"/>
14 <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."/>
Cristy364a72f2016-11-04 22:38:41 -040015 <meta name="application-url" content="https://www.imagemagick.org"/>
Cristy594d2772015-11-15 10:47:42 -050016 <meta name="generator" content="PHP"/>
17 <meta name="keywords" content="webp, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
18 <meta name="rating" content="GENERAL"/>
19 <meta name="robots" content="INDEX, FOLLOW"/>
20 <meta name="generator" content="ImageMagick Studio LLC"/>
21 <meta name="author" content="ImageMagick Studio LLC"/>
22 <meta name="revisit-after" content="2 DAYS"/>
23 <meta name="resource-type" content="document"/>
Cristyfe36f992016-12-29 20:24:13 -050024 <meta name="copyright" content="Copyright (c) 1999-2017 ImageMagick Studio LLC"/>
Cristy594d2772015-11-15 10:47:42 -050025 <meta name="distribution" content="Global"/>
26 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
Cristy912a9222016-06-17 15:37:28 -040027 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
Cristy6549abb2016-11-10 08:25:55 -050028 <link rel="canonical" href="https://www.imagemagick.org/script/webp.html"/>
Cristy594d2772015-11-15 10:47:42 -050029 <link rel="icon" href="../images/wand.png"/>
30 <link rel="shortcut icon" href="../images/wand.ico"/>
Cristybc232422016-11-22 07:46:18 -050031 <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" />
Cristyce4a3552015-12-14 13:53:35 -050032 <link rel="stylesheet" href="css/magick.css"/>
cristy6d953db2013-02-18 16:43:41 +000033</head>
cristyd2432012015-05-04 23:15:15 +000034<body>
cristy6d953db2013-02-18 16:43:41 +000035<div class="main">
cristyd2432012015-05-04 23:15:15 +000036<div class="magick-masthead">
37 <div class="container">
Cristy6549abb2016-11-10 08:25:55 -050038 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
Cristy594d2772015-11-15 10:47:42 -050039 style="display:block"
40 data-ad-client="ca-pub-3129977114552745"
41 data-ad-slot="6345125851"
42 data-ad-format="auto"></ins>
cristy29f2c972015-07-28 13:37:46 +000043 <script>
Cristy542697a2015-10-12 20:10:32 -040044 (adsbygoogle = window.adsbygoogle || []).push({});
cristyd2432012015-05-04 23:15:15 +000045 </script>
cristyd2432012015-05-04 23:15:15 +000046 <nav class="magick-nav">
cristy44443b92015-05-05 00:06:07 +000047 <a class="magick-nav-item " href="../index.html">Home</a>
Cristy9017f3a2017-01-21 10:51:11 -050048 <a class="magick-nav-item " href="download.html">Download</a>
cristyd2432012015-05-04 23:15:15 +000049 <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
Cristye93be682015-11-26 09:07:51 -050050 <a class="magick-nav-item " href="command-line-processing.html">Command-line</a>
cristyea2793e2015-05-31 16:52:26 +000051 <a class="magick-nav-item " href="resources.html">Resources</a>
Cristy9017f3a2017-01-21 10:51:11 -050052 <a class="magick-nav-item " href="develop.html">Develop</a>
Cristy6549abb2016-11-10 08:25:55 -050053 <a class="magick-nav-item " href="https://www.imagemagick.org/script/search.php">Search</a>
Cristy6fe3b072017-06-08 20:59:09 -040054 <a class="magick-nav-item float-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
cristyd2432012015-05-04 23:15:15 +000055 </nav>
56 </div>
57</div>
58<div class="container">
59<div class="magick-header">
60<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>
cristy6d953db2013-02-18 16:43:41 +000061
62<ul>
cristy8ee7f242013-06-20 16:08:44 +000063<li>quality of 50</li>
64<li>lossless compression</li>
cristy6d953db2013-02-18 16:43:41 +000065</ul>
66
67<p>Use this command:</p>
68
cristy82a2ff22015-05-12 16:41:32 +000069<pre>
70convert wizard.png -quality 50 -define webp:lossless=true wizard.webp
71</pre>
72
cristy8ee7f242013-06-20 16:08:44 +000073<p>Here is a complete list of WebP encoding options:</p>
cristy6d953db2013-02-18 16:43:41 +000074
cristyd2432012015-05-04 23:15:15 +000075<div class=" able-responsive">
76<table class="table table-condensed table-striped">
77 <tr>
78 <td>alpha-compression=<var>value</var></td>
79 <td>encode the alpha plane: 0 = none, 1 = compressed.</td>
80 </tr>
81 <tr>
82 <td>alpha-filtering=<var>value</var></td>
83 <td>predictive filtering method for alpha plane: 0=none, 1=fast, 2=best.</td>
84 </tr>
85 <tr>
86 <td>alpha-quality=<var>value</var></td>
87 <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>
88 </tr>
89 <tr>
90 <td>auto-filter=<var>true, false</var></td>
91 <td>when enabled, the algorithm spends additional time optimizing the filtering strength to reach a well-balanced quality.</td>
92 </tr>
93 <tr>
94 <td>emulate-jpeg-size=<var>true, false</var></td>
95 <td>return a similar compression to that of JPEG but with less degradation.</td>
96 </tr>
97 <tr>
98 <td>filter-sharpness=<var>value</var></td>
99 <td>filter sharpness.</td>
100 </tr>
101 <tr>
102 <td>filter-strength=<var>value</var></td>
103 <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>
104 </tr>
105 <tr>
106 <td>filter-type=<var>value</var></td>
107 <td>filter type: 0 = simple, 1 = strong</td>
108 </tr>
109 <tr>
110 <td>image-hint=<var>default, photo, picture, graph</var></td>
111 <td>the hint about the image type.</td>
112 </tr>
113 <tr>
114 <td>lossless=<var>true, false</var></td>
115 <td>encode the image without any loss.</td>
116 </tr>
117 <tr>
118 <td>low-memory=<var>true, false</var></td>
119 <td>reduce memory usage.</td>
120 </tr>
121 <tr>
122 <td>method=<var>value</var></td>
123 <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>
124 </tr>
125 <tr>
126 <td>preprocessing=<var>value</var></td>
127 <td>Choose from: 0=none, 1=segment-smooth, 2=pseudo-random dithering.</td>
128 </tr>
129 <tr>
130 <td>partitions=<var>value</var></td>
131 <td>progressive decoding: choose 0 to 3.</td>
132 </tr>
133 <tr>
134 <td>partition-limit=<var>value</var></td>
135 <td>Choose 0 for no quality degradation and 100 for maximum degradation.</td>
136 </tr>
137 <tr>
138 <td>pass=<var>value</var></td>
139 <td>maximum number of passes to target compression size or PSNR.</td>
140 </tr>
141 <tr>
142 <td>segment=<var>value</var></td>
143 <td>Choose from 1 to 4, the maximum numbher of segments to use.</td>
144 </tr>
145 <tr>
146 <td>show-compressed=<var>true, false</var></td>
147 </tr>
148 <tr>
149 <td>sns-strength=<var>value</var></td>
150 <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>
151 </tr>
152 <tr>
153 <td>target-size=<var>value</var></td>
154 <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>
155 </tr>
156 <tr>
157 <td>target-psnr=<var>value</var></td>
158 <td>desired minimal distortion.</td>
159 </tr>
160 <tr>
161 <td>thread-level=<var>value</var></td>
162 <td>enable multi-threaded encoding.</td>
163 </tr>
164</table></div>
cristy6d953db2013-02-18 16:43:41 +0000165</div>
cristyd2432012015-05-04 23:15:15 +0000166 <footer class="magick-footer">
cristy29f2c972015-07-28 13:37:46 +0000167 <p><a href="support.html">Donate</a>
168 <a href="sitemap.html">Sitemap</a>
cristyd2432012015-05-04 23:15:15 +0000169 <a href="links.html">Related</a>
Cristye0779712016-07-30 17:25:22 -0400170 <a href="security-policy.html">Security</a>
cristy29f2c972015-07-28 13:37:46 +0000171 <a href="architecture.html">Architecture</a>
cristyd2432012015-05-04 23:15:15 +0000172</p>
173 <p><a href="webp.html#">Back to top</a>
cristyea2793e2015-05-31 16:52:26 +0000174 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
Cristy6549abb2016-11-10 08:25:55 -0500175 <a href="https://www.imagemagick.org/script/contact.php">Contact Us</a></p>
Cristyfe36f992016-12-29 20:24:13 -0500176 <p><small>© 1999-2017 ImageMagick Studio LLC</small></p>
cristyd2432012015-05-04 23:15:15 +0000177 </footer>
178</div><!-- /.container -->
cristy6d953db2013-02-18 16:43:41 +0000179
Cristyb7f455a2017-03-03 19:30:34 -0500180 <script src="https://localhost/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
Cristy1f1f3a02016-06-01 07:25:42 -0400181 <script src="../js/magick.html"></script>
cristy149d58c2013-08-07 19:44:54 +0000182</div>
cristy6d953db2013-02-18 16:43:41 +0000183</body>
cristy5a367e42015-05-05 12:39:18 +0000184</html>
Cristy5890de62017-06-10 13:25:17 -0400185<!-- Magick Cache 10th June 2017 13:15 -->