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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
hello, i have the same problem. the file is created of Zero byte. please tell me the solution.. Thanks Arun On 26/04/07, mr_robot <robopop-aCaOOF52aklWk0Htik3J/w@public.gmane.org> wrote:> > > 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 > > > > >-- Arun Agrawal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Could you post your migration? On Apr 26, 10:51 am, mr_robot <robo...-aCaOOF52aklWk0Htik3J/w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
> 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. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Apr 30, 12:59 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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. > > -- > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.com--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
hmmmmm.....not sure how well the mini_magick plugin works. Maybe you should try installing the latest version of mini_magick as a gem ? On Apr 30, 8:46 pm, mr_robot <robo...-aCaOOF52aklWk0Htik3J/w@public.gmane.org> wrote:> 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 > > On Apr 30, 12:59 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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. > > > -- > > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephist...--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---