Square thumbnails are blurred

Hey

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’
image.write("#{RAILS_ROOT}/public/images/members/#{@user_id}/#{@id}_100px#{image_file_extension}")

everything works fine, except the image is very blurred.

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

Thanks

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!