image-science

How do I make a ruby gem available to my scripts?

On my web host's system, installing and using gems seems to require installing my own copy of ruby. With their help on a forum, I've gotten that done. I'm trying to use a particular gem (called Image Science) in a Rails app. At this point, if I open irb and type the following, this is what I get: require 'rubygems' #true require 'image...

Attachment_fu error

Hello, I am getting an error while trying to upload images on an Ubuntu machine that's running Rails 2.3.4, Ruby 1.8.6 using attachment_fu with image science. FreeImage exception for type ???: IPTC: Invalid key 'Tag 0x025C' The error seems to point to this line in the image_science_processor in the attachment_fu plugin: def with_imag...

Cropping image with ImageScience

ImageScience is cool and light. I am using it in my sinatra app. But I can't understand how can I crop image with not square form and how can I make thumbnail with two dimensions. As I found on ImageScience site: ImageScience.with_image(file) do |img| img.cropped_thumbnail(100) do |thumb| thumb.save "#{file}_cropped.png" end ...

ImageScience on Mac is not loaded

hi, i'm a ruby-newbe trying to get attachment_fu working (with ImageScience as processor). After few days of exhausting battles I came to the point where (using console): irb> require 'image_science' true so i'm assuming there are no problems with loading. however my application throws constantly: Cannot load file -- image_science ...

How to convert an ImageScience image to something S3/AWS can upload

Hi all, I initially store a jpeg in a variable (it is the balue I reveive from an HTTP get over net/http. Ig I input this directly into AWS, it works fine. However, I would like to resize it and then stuff it into AWS and I always get a warning "size not a method' on IMAGESCIENCE object. I tried onverting it to to_s, but that just gave...