<metaname="description"content="Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more."/>
<pclass="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>
<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>
<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 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 number 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>