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.

Comments are closed.

About This Site

Addicted to New is the personal website of John Nunemaker (Noo-neh-maker), a Web Developer enamored of Ruby on Rails and a wide-eyed fan of all things new and cool.