Hi,
  I am using imagemagick and rmagick for image manipulation....

imagemagick version-6.4.4
rmagick 2.7

I need to create a thumbnail.

    img = Magick::Image.read(org_img_path)[0]
    img.crop_resized(width,height)
    img.write(new_image_path)


when i used this piece of code in console its cropping correctly...when
i used inside model or lib or controller its not working.

but if i use crop_resized! it is working but i need to maintain aspect
ratio for that image.

If someone knows solutin for this problem kindly help me

with regards
shiva
-- 
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to