Forum: Ruby on Rails attachment_fu, width/height of original image

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.
Jung-joon Kim (Guest)
on 2007-03-24 17:46
(Received via mailing list)
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?
This topic is locked and can not be replied to.