Forum: Ruby on Rails Attachment_fu thumbnail quality with image science

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
24b05e200310d4673bf93e9349067887?d=identicon&s=25 unknown (Guest)
on 2007-07-05 18:54
(Received via mailing list)
I'm having trouble with the image quality of the thumbnails
attachment_fu is creating in my app and I'm hoping someone can point
me in the direction of a fix.

In my search for answers I've found this page [1] which claims
"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 ..."

However there is no detail on how to patch free image. In any case
another page [2] claims image science has since been updated and that
it now uses the "Catmull-Rom spline filter for better quality". Yet,
the thumbnails still look poor to me.

I'm using version 1.1.3 of image_science and, as far as I can tell,
the latest version of attachment_fu.  If anyone does know of a fix or
has any info on this it would be much appreciated.

Cheers,
Paul.

http://paulsturgess.co.uk

[1]
http://mephistoblog.com/2007/1/9/new-asset-thumbna...
[2] http://blog.caboo.se/articles/2007/3/8/image-science-updated
24b05e200310d4673bf93e9349067887?d=identicon&s=25 unknown (Guest)
on 2007-07-19 22:50
(Received via mailing list)
I managed to find a fix for the problem...

In the model I had 'resize' and 'thumbnails' options set. I removed
the 'resize' option and added it as an additional size in the
'thumbnails'
option instead and now the quality is good.

Hope that saves someone the time I spent trying to solve it!

Cheers,
Paul

http://paulsturgess.co.uk
This topic is locked and can not be replied to.