Hello, I''m trying to use attachment_fu in order to upload photo and create three versions of thumbnails (large small and medium). This works perfect of my mac book. but on my production server it uploads the image but doesn''t create three version of thumbnails!! I researched on the site and googled a bit, and tried couple of things suggested with no success. My server has Linux Debian on it (VPS) Here is what the photo model looks like: ------------------------------------------------------ class Photo < ActiveRecord::Base belongs_to :account, :foreign_key => :account_id belongs_to :user, :foreign_key => :user_id has_attachment :content_type => :image, :storage => :file_system, :max_size => 500.kilobytes, :resize_to => ''384x256>'', :thumbnails => { :large => ''150x150>'', :medium => ''64x64>'', :small => ''48x48>'' } validates_as_attachment #to prevent image sizes out of range from being saved end ------------------------------------------------------ I checked in the log files (production.log, mongrel.log and apache error log with no errors showing!) Any ideas how I can approach this problem. Your help is appreciated. Tam -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
You should verify that your configured processor, such as rmagick/ imagemagick, is installed and available to the user under which the application runs. On Mar 16, 9:57 pm, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > > I''m trying to use attachment_fu in order to upload photo and create > three versions of thumbnails (large small and medium). This works > perfect of my mac book. but on my production server it uploads the image > but doesn''t create three version of thumbnails!! I researched on the > site and googled a bit, and tried couple of things suggested with no > success. > My server has Linux Debian on it (VPS) > > Here is what the photo model looks like: > ------------------------------------------------------ > class Photo < ActiveRecord::Base > belongs_to :account, :foreign_key => :account_id > belongs_to :user, :foreign_key => :user_id > > has_attachment :content_type => :image, > :storage => :file_system, > :max_size => 500.kilobytes, > :resize_to => ''384x256>'', > :thumbnails => { > :large => ''150x150>'', > :medium => ''64x64>'', > :small => ''48x48>'' > } > > validates_as_attachment #to prevent image sizes out of range from > being saved > end > ------------------------------------------------------ > > I checked in the log files (production.log, mongrel.log and apache error > log with no errors showing!) Any ideas how I can approach this problem. > > Your help is appreciated. > > Tam > -- > Posted viahttp://www.ruby-forum.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
you were right Eric I just figured out I had to execute this line as my RMagick was installed but not configured properly: export LD_LIBRARY_PATH=/usr/local/lib Now it works by making four versions of the photo but they are the same! I mean it doesn''t actually create different sizes of images. Any ideas?? -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
I realized that the problem was from RMagick/ImageMagick I tried installing different versions of both with no success. I resolved the problem by using ImageScience/FreeImage instead. It seems to work better for me now! Thanks, Tam -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
\"Wolas!\"
2009-Mar-17 09:09 UTC
Re: attachment_fu doesnt resize photo and create thumbnails
recently i have been hearing a lot of good about paperclip to replace attachment_fu On Mar 17, 8:27 am, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I realized that the problem was from RMagick/ImageMagick I tried > installing different versions of both with no success. > > I resolved the problem by using ImageScience/FreeImage instead. It seems > to work better for me now! > > Thanks, > > Tam > -- > Posted viahttp://www.ruby-forum.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2009-Mar-17 09:15 UTC
Re: attachment_fu doesnt resize photo and create thumbnails
The thing is that even Paperclip would fail here, since it''s clearly related to RMagick. Paperclip uses the same library to scale its images. I prefer attachment_fu over paperclip, it has a couple of features Paperclip doesn''t have and it has worked perfectly for me. The right tool for the right job. On 17 Mar 2009, at 10:09, Wolas! wrote:> recently i have been hearing a lot of good about paperclip to replace > attachment_fu > > On Mar 17, 8:27 am, Tam Kbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> I realized that the problem was from RMagick/ImageMagick I tried >> installing different versions of both with no success. >> >> I resolved the problem by using ImageScience/FreeImage instead. It >> seems >> to work better for me now!Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---