Make sure the compress transformation works as expected with png and gif

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.