# About RMagic

**URL:** <https://www.ruby-forum.com/t/about-rmagic/157779>\
**Category:** Rails\
**Created:** [January 15, 2009, 9:23am UTC](https://www.ruby-forum.com/t/about-rmagic/157779 "2009-01-15T09:23:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@nilez](https://www.ruby-forum.com/u/nilez)\
**Post date:** [January 15, 2009, 9:23am UTC](https://www.ruby-forum.com/t/about-rmagic/157779/1 "2009-01-15T09:23:09Z")

</div>

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
```
