Has anybody figured out a way to force attachment_fu to regenerate thumbnails? I had some major issues with mini_magick not figuring out the correct image sizes, and I''d like to re-try with rmagick. But, I can''t re-upload all the files. Thanks, Matt -- 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 -~----------~----~----~----~------~----~------~--~---
PH, On 22-Jan-08, at 11:34 PM, photo matt wrote:> > Has anybody figured out a way to force attachment_fu to regenerate > thumbnails? I had some major issues with mini_magick not figuring out > the correct image sizes, and I''d like to re-try with rmagick. > > But, I can''t re-upload all the files. > > Thanks, > > Matt >I came across this post recently - as I''ll need to do the same in the near term http://www.razorproxy.com/index.php? q=aHR0cDovL2JlYXN0LmNhYm9vLnNlL2ZvcnVtcy8yL3RvcGljcy80NjIzP3BhZ2U9MSNwb3 N0cy03ODMy can you let me now if it works out for you? thanx, Jodi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jodi, I had seen that link before posting, and I''m not sure why it didn''t work for me the first time around. Of more important info possibly is that my server had ImageMagick 6.2.4, and it was (randomly) reporting widths and heights of null, and wasn''t actually resizing the thumbnails. Upgrading to 6.3.8 fixed this problem. Anyways, here''s my script which I ran that fixed the data.... Photo.find(:all, :conditions=>["width IS NULL and height IS NULL and parent_id IS NULL"]).each do |p| puts "Fixing #{p.filename}" temp_file = p.create_temp_file image = MiniMagick::Image.from_blob(temp_file.path) p.width = image[:width] p.height = image[:height] p.save p.attachment_options[:thumbnails].each { |suffix, size| p.create_or_update_thumbnail(temp_file, suffix, *size) } -- 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 always do such the work and i feel some professional software might be able to do us a favor .Recently Im dealing thumbnail generation with vb ,it maybe another sulotion here .BTW, the info above give me more choice, I got interested in make this out in different ways. http://www.rasteredge.com/how-to/vb-net-imaging/thumbnail-creating/ -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/06fe846158581622b216e55ae6e311e5%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Aug 18, 2013 at 9:09 PM, danny thyui <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> i always do such the work and i feel some professional software might be > able to do us a favor .Recently Im dealing thumbnail generation with vb > ,it maybe another sulotion here .BTW, the info above give me more > choice, I got interested in make this out in different ways. > http://www.rasteredge.com/how-to/vb-net-imaging/thumbnail-creating/grep /(ruby|rails)/i then grok -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnywpnajS3qAix3yxByo%3DN_sW%2BX37HzQXSfS%2BZbJwxq_qQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.