attachment_fu not saving thumbnails

hi attachment_fu is not saving thumbnails, nor parent_id or width or height in the database. any ideas why? using minimagick

class Mugshots < ActiveRecord::Base

  has_attachment :processor => :mini_magick,   :content_type => :image,                  :storage => :file_system,                  :max_size => 5000.kilobytes,                  :resize_to => '320x200>',                  :thumbnails => { :thumb => '100x100>' }

  validates_as_attachment

end

hello, i have the same problem. the file is created of Zero byte.

please tell me the solution…

Thanks

Arun

Could you post your migration?

i followed mike clark's tutorial

class CreateMugshots < ActiveRecord::Migration

  def self.up     create_table :mugshots do |t|       t.column :parent_id, :integer       t.column :content_type, :string       t.column :filename, :string       t.column :thumbnail, :string       t.column :size, :integer       t.column :width, :integer       t.column :height, :integer     end   end

  def self.down     drop_table :mugshots   end end

the only difference is i'm using image_magick in my model - don't want to use imagescience - because rmagick kills dreamhost shared servers.

so here's the model:

class Mugshot < ActiveRecord::Base

  has_attachment :content_type => :image,                  :storage => :file_system,                  :max_size => 5000.kilobytes,                  :resize_to => '320x200>',                  :processor => :mini_magick,                  :thumbnails => { :thumb => '100x100>' }

  validates_as_attachment

end

filename, content_type and size gets saved into database, but no parent_id or width or height or thumbnail

banging my head agaist this one. googling have seen a couple of people with same issue, but haven't heard of anyone resolving it. any ideas?

filename, content_type and size gets saved into database, but no parent_id or width or height or thumbnail

banging my head agaist this one. googling have seen a couple of people with same issue, but haven't heard of anyone resolving it. any ideas?

You need either rmagick, minimagick, or image science if you want them to create thumbnails.

hi rick yea, mini_magick is installed as plugin. and when i check through terminal i can see it. and when using :processor => :mini_magick it doesn't work. same as if i use rmagick, which i know is 100% working - because it works with filecolumn

hmmmmm.....not sure how well the mini_magick plugin works. Maybe you should try installing the latest version of mini_magick as a gem ?

yes, it does seem to be minimagick that is causing the problems. if i use rmagick the image details get saved in. but tried both the minimagick gem and the plugin, and no luck.