Saving The Quality
February 20th, 2006
I wrote about rotating images with RMagick and Ruby on Rails a week or so ago. One thing that I left out was the effect rotating has on the quality of the image. In order to rectify this, you have to add a block after each image.write call like so:
image.write(photo.file) {self.quality = 100}
I rotated the same image several times and didn’t notice much of a drop in quality. Just wanted to let anyone know that might use the code I formerly posted.
If you enjoyed this post, get free updates by email or RSS.