Peter De Berdt
2007-Feb-06 23:58 UTC
Attachment_fu ImageScience FreeImage thumbnail quality
I''ve tried migrating acts_as_attachment to attachment_fu (just to see if I could replace RMagick with ImageScience+FreeImage), but the quality of the thumbnails is just horrendous, blurred beyond recognition (downscaling a 1280x1024 to a few considerably smaller thumbnails). Changing attachment_fu to use RMagick again and the thumbnails were crispy sharp again. I was wondering if this has anything to do with ImageScience or if it''s rather just FreeImage not using a good scaling algorithm. 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 -~----------~----~----~----~------~----~------~--~---
Ben Mabey
2007-Feb-07 05:45 UTC
Re: Attachment_fu ImageScience FreeImage thumbnail quality
Peter, Check out this blog''s comments: http://mephistoblog.com/2007/1/9/new-asset-thumbnailing-options-available From the link: "ImageMagick''s default resampling filter used for image resizing is the Lanczos filter. For Image Science it''s bilinear filter. Bilinear is faster but it''s not the best for creating thumbnails of photographic images. It''s only possible to set Lanczos as the default by patching FreeImage source. It''s pretty straightforward though " .... "Martins: That decision came up when I asked Ryan Davis to include the resizing functions in ImageScience. He was dead set on keeping the gem simple, so decided to hardwire the filter choice. It may be worth being able to override it in Ruby without having to hack c though." On 2/6/07, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > I''ve tried migrating acts_as_attachment to attachment_fu (just to see if I > could replace RMagick with ImageScience+FreeImage), but the quality of the > thumbnails is just horrendous, blurred beyond recognition (downscaling a > 1280x1024 to a few considerably smaller thumbnails).Changing attachment_fu > to use RMagick again and the thumbnails were crispy sharp again. > > I was wondering if this has anything to do with ImageScience or if it''s > rather just FreeImage not using a good scaling algorithm. > > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---