# Attachment\_fu, width/height of original image

**URL:** <https://www.ruby-forum.com/t/attachment-fu-width-height-of-original-image/89982>\
**Category:** Rails\
**Created:** [March 24, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/attachment-fu-width-height-of-original-image/89982 "2007-03-24T16:46:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jung-joon\_Kim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@Jung-joon\_Kim](https://www.ruby-forum.com/u/Jung-joon_Kim)\
**Post date:** [March 24, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/attachment-fu-width-height-of-original-image/89982/1 "2007-03-24T16:46:54Z")

</div>

Hi

Q: How can I get height/width of original image (not tumbnail)?

I’m using attachment\_fu plugin. (thanks to the author!)

model has following options  
has\_attachment :content\_type =\> :image,  
:storage =\> :file\_system,  
:max\_size =\> 5000.kilobytes

as it tells, I don’t use thumbnail feature.

I uploaded image files, file were uploaded well, but width/height  
fields of model are nil. (NULL in database).

for testing, when I add thumbnail feature to model, width/height  
column of thumbnail image record have proper values (width/height of  
thumbnailed image).

Is there option of attachment\_fu for setting original image’s(not  
thumbnail) width/height field properly? (the fields are set properly  
for thumbnail images) or should I hack attachment\_fu to do that?
