[Ruby] Need urgent help with FreeImage/ImageScience on OS X - will pay!
John Moody
john at mentalvelocity.com
Sat Mar 24 13:10:02 PST 2007
That fixed the test, and it now works correctly. Thus, ImageScience
and FreeImage are happy campers.
Unfortunately, my Rails app still fails. I'm using the attachment_fu
plugin, and it spits out a TypeError("Bitmap has already been
freed"). This only happens with a resize or thumbnail operation - in
other words, when it calls ImageScience! (You can see why I thought
ImageScience was at fault originally.)
Out of curiosity, has anyone else seen this?
On Mar 24, 2007, at 1:31 PM, Ryan Davis wrote:
> require 'rubygems'
> require 'image_science'
>
> in_file = File.expand_path "~/Desktop/logo.gif"
> out_file = File.expand_path "~/Desktop/logo-thumb.gif"
>
> ImageScience.with_image in_file do |img|
> img.thumbnail(50) do |thumb|
> thumb.save out_file
> end
> end
More information about the Ruby
mailing list