I am trying to resize an image and reduce the quality of an image pulled from a database and be able to save it back into the database at the reduced size.
So far, I am trying the following RMagick methods:
image = Image.from_blob(origImage.data).first do
self.format = "png"
end
image.resize_to_fit!(width)
image.quality = 60
newImage = image.to_blob
But the value of image.quality has no implact on the size of data from to_blob.
Am I doing this correctly?