The problem occurs when I try to manipulate an image downloaded from Sinatra.
File.open(params[:file][:tempfile]) do |p| thumb = Magick::Image.read(p) thumb.crop_resized!(75, 75, Magick::NorthGravity) end
The uploaded file is a jpeg, form data when the image upload includes
{:filename=>"299732_176749115737355_100002068035867_380115_618512842_n.jpg", :type=>"image/jpeg", :name=>"file", :tempfile=>
And also ImageMagick has the necessary delegates
convert -list configure
returns
DELEGATES bzlib freetype jpeg jng jp2 lcms png tiff x11 xml zlib
So, I should be able to load and convert jpeg, but it whines about delegates. I am also working on Mac OSX 10.7, maybe another weird issue with mac
ruby imagemagick rmagick
gkaykck
source share