Forum: Ruby on Rails about RMagic

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




i am using attachment_fu with
Rmagic(RMagick-2.7.1-ImageMagick-6.4.5-3-Q8)
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>' }
end

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.