title: How to set compression quality for WebP images using PHP?
body: <p>I want to create WebP images using ImageMagick and PHP. Unfortuneately I couldn't find out how to set the compression quality for a WebP image as the following code seems to ignore.</p>
  
  <pre><code>$quality = 1; # example which should result a low quality image
  
  $imagick = new Imagick( $sourcefile );
  $imagick-&gt;setImageFormat('webp');
  $imagick-&gt;thumbnailImage( 850, 600, true );
  $imagick-&gt;setImageCompressionQuality( $quality );
  #$imagick-&gt;writeImage($file .'.webp');
  </code></pre>
  
  <p>The result image in poor quality but not as bad as 1% compression should be.</p>
  
  <p>Any ideas/help on how to set image quality?</p>
  
  <p>Kind regards,
  Tom</p>