Forum: Ruby on Rails about RMagic

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C47e75cdd405c006fb3a3a0cae147302?d=identicon&s=25 Nilesh Kulkarni (nilk_cse)
on 2009-01-15 09:23

i am using attachment_fu with
i am thumbnailing image.code is as follows it is thumbniling onlt .gif
image not other .Is there any problem with RMagic version.

what else i can do code is as bellow

1>code of model(asset)
class Asset < ActiveRecord::Base
 has_attachment  :storage => :file_system,
                 :max_size => 5.megabytes,
         :processor => :Rmagick,
         :thumbnails => { :small => '60x60>' }

1>no valodations. this is resizing only gif image.
2>also for other type of images(such as .png,.jpg) it is not storing
size of image in database.
3> creating imagename_small copy of image in pubilc/asset folder but not
thumbnailing it.

database table

      string :filename
      string :content_type
      integer :size (not storing for other images then gif)
      integer :width
      integer :height
      string :thumbnail
This topic is locked and can not be replied to.