When working with lossy image formats like JPEG, you can control how much the output image will be compressed by specifying the desired "quality".
The quality of the output JPEG image is specified using the -quality option, which you can specify as a saver option:
-quality
ImageProcessing::MiniMagick .resize_to_limit(400, 400) .saver(quality: 75) # specify quality .call(image)
The quality of the output JPEG image is specified using the :Q saver option, but we can use the :quality alias:
:Q
:quality
ImageProcessing::Vips .resize_to_limit(400, 400) .saver(quality: 75) # specify quality .call(image)
There was an error while loading. Please reload this page.