-
Notifications
You must be signed in to change notification settings - Fork 83
Specifying image quality
Janko Marohnić edited this page Jul 9, 2018
·
6 revisions
When working with lossy image formats like JPEG, you can control how much the output image will be compressed by specifying its "quality".
The quality of the output JPEG image is specified using the -quality option, which you can specify as a saver option:
ImageProcessing::Vips
.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:
ImageProcessing::MiniMagick
.resize_to_limit(400, 400)
.saver(quality: 75) # specify quality
.call(image)