Questions tagged [image-science]

The image-science gem is a small Ruby library for basic image manipulations common to web applications, such as cropping, resizing, and thumb-nailing.

The image-science gem is a small Ruby library for basic image manipulations common to web applications, such as cropping, resizing, and thumb-nailing.

SeattleRB.org Homepage

RubyGems.org

Documentation

GitHub Repository

16 questions
3
votes
0 answers

Ruby inline fails the rails server to start in windows

The application requires Image science which is dependent on Ruby Inline. After a tough time installing Image science and ruby inline, the gems were successfully installed. But when I tried to start the server it fails saying that the gcc was passed…
user662539
  • 41
  • 1
  • 5
3
votes
4 answers

ImageScience breaks on update to Rails 3

I had a working (and working well) ImageScience install, that did some simple resizing to various dimensions of images, and then copying them to different directories. All very simple. This small and simple routine was in a rake task. Upon update to…
3
votes
2 answers

How to convert bar graphs into data?

I have several thousand bar graphs to convert that follow the following format: I need to convert these to actual data + date. My plan has been to use something, perhaps ImageMagick, to extract the date, pass it through OCR and then slice up the…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
1
vote
2 answers

Ruby: How do I overlay images on top of another WITHOUT Imagemagick?

I have an image that is 100 X 100, and want to center it in a blank white image that is 200 X 200. How would I do so with ImageScience and Ruby, or another third party package? And without ImageMagick nor FreeImage? I know that's very constraining…
Henley
  • 21,258
  • 32
  • 119
  • 207
1
vote
0 answers

Has anyone ever used the Image-science gem for generating thumbnails?

It appears to be what I need (just basic thumbnail generation magic) and according to its ruby-toolbox description, it "kicks the living crap out of RMagick." I'd appreciate any sort of feedback on this gem. And yes, I'm evaluating it on my own as…
jaydel
  • 14,389
  • 14
  • 62
  • 98
1
vote
2 answers

Is there an easy way to automatic vertical/horizontal align images with paperclip?

I always want square images of 100x100 but i dont want to scale. If the it is an image of 100X80 i want it vertical aligned with 10 white pixels on top and 10 white pixels on bottm. Is there an easy way to handle this? Using Rails 2.1 with paperclip…
Michael Koper
  • 9,586
  • 7
  • 45
  • 59
1
vote
1 answer

Attachment_fu error

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…
cswebgrl
  • 687
  • 1
  • 7
  • 11
1
vote
1 answer

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…
Nathan Long
  • 122,748
  • 97
  • 336
  • 451
0
votes
1 answer

Rails & Image Science: Permission denied

I've problem with SocialNews framework from NewsTrust. I use Ruby 187, Rails 2.3.11, DevKit, Visual C++ 2008 EE on Windows XP, when I run ruby script/server then I got following error: http://pastebin.com/LpNDRqcg. The gemfile: source :gemcutter gem…
panjianom
  • 236
  • 4
  • 18
0
votes
0 answers

ImageScience w/ Rails 3

I'm trying to get ImageScience working w/ my rails 3 app. When I try to do require 'image_science' in one of my controllers I get: LoadError in Api::ImagesController#server require on /Users/Kyle/.ruby_inline/Inline_ImageScience_cdab.bundle…
Kyle Decot
  • 20,715
  • 39
  • 142
  • 263
0
votes
1 answer

undefined method 'inline' for ImageScience:Class (NoMethodError)

I am migrating a Rails 2.1.2 application to Rails 2.3.11 To make my life easier i used bundler but I get the following error when starting my server: /Library/Ruby/Gems/1.8/gems/image_science-1.2.1/lib/image_science.rb:90: undefined method `inline'…
Michael Koper
  • 9,586
  • 7
  • 45
  • 59
0
votes
1 answer

Image science1.2.1 fails to load in rails 3

I am trying to run my application and bundle install worked fine for me.. I am using Rails 3 and Ruby 1.9.2 amd image science 1.2.1 But when I use rails server the imagescience is failing to compile I guess and shows the following error... Does…
user662539
  • 41
  • 1
  • 5
0
votes
2 answers

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…
fl00r
  • 82,987
  • 33
  • 217
  • 237
0
votes
1 answer

how does getdepth function work in MarchingCube algorithm?

I am trying to understand Marching Cube Algorithm, so for I think I have understood how triangles are formed and how normals are calculated in each grid. I can see there is a linked list kind of structure that links each grid to another. But when I…
solti
  • 4,339
  • 3
  • 31
  • 51
0
votes
1 answer

Error trying to use image_science in a rails project on ubuntu 12.04

I have a rails 3.0.20 app running with rvm on ruby 1.9.3p327. My Gemfile reads: gem 'image_science', :git => 'git://github.com/asynchrony/image_science.git' and Gemfile.lock has its version as: remote:…
umar
  • 4,309
  • 9
  • 34
  • 47
1
2