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
--
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
-~----------~----~----~----~------~----~------~--~---
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! -- 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 -~----------~----~----~----~------~----~------~--~---