Forum: Ruby on Rails Square thumbnails are blurred

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
60071e44382435f0f42bf6c3f6e29889?d=identicon&s=25 Scott Holland (ginsberg1982)
on 2007-01-03 23:34

I'm using mini_magick to create some square thumbnail using the
following code...

image.resize 'x200'
    image.resize '200x<'
    image.resize '50%'
    image.gravity 'center'
    image.crop '100x100+0+0'

everything works fine, except the image is very blurred.

Do you have any idea what I could be doing wrong?

60071e44382435f0f42bf6c3f6e29889?d=identicon&s=25 Scott Holland (ginsberg1982)
on 2007-01-04 00:04
ok, never mind. I was being stupid.

In my script, I tried to resize it to 66x66px

and then resize to 100x100px

Obviously, I need to resize to 100px first and then resize to 66px

No more blur!
This topic is locked and can not be replied to.