I am currently trying to create an application on RoR and I am using
attachmne_fu plugin in order to handle image uploads.
I have also install ImageScience to create some thumbnails for the
images I upload
The problem is that I can upload images, but it resizes the original
image to the thumbnail version. I don’t know why.
For example if I upload an image say IMG_2455.jpg, in the directory
0000/0002 I have 2 files:
a) IMG_2455.jpg
b) IMG_2455_thumb.jpg
but the original image is also resized! so i have two images of 125x83
dimensions.
How can I keep the original image plus the thumbnail version ?
Here is my code in my model
before the thumbnails option. It should leave any image smaller than
5000x5000 alone. Obviously, this is an awfully ugly hack, but humor me,
and see if the presence of the resize_to option makes a difference.
to resize any larger image to something that fits full screen on my
monitor, and the file system has the original, and a thumbnail, both
properly sized, even when the original is a 1024x768 image. Larger
images get sized down to 1600x1200.