Compress transformation only works as expected with image/jpeg

Today the value passed to the compress transformation (a value between 0 and 100) is passed directly to the `setImageCompressionQuality` method (http://php.net/manual/en/imagick.setimagecompressionquality.php). This does not work as expected if the image is a gif or a png.