RMagick Image Rendering
I am fairly new to Ruby on Rails and I have been trying to upload images and create thumbnails using the "Processing Uploaded Images" recipe from the Rails Recipes book. The script uses RMagick to create thumbnails of the uploaded images and saves both the uploaded images and the thumbnails in the public/uploaded_images directory. However when I upload an image, both the image and the thumbnail created do not resemble the image submitted. They are just scrambled pixels. The image attached is a thumbnail created by the recipe. Does anybody know how I can fix this problem? Any help is greatly appreciated.
Mike.
Attachments: http://www.ruby-forum.com/attachment/2684/1-thumb.pearl_jam_alive__ascii_2.jpg