Please can you install ImageScience and FreeImage (a less memory intense image library)?
- Iand
- Posts: 5
- Starts: 3
- Wiki Edits: 0
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
We had tried installing ImageScience and its dependencies like freeimage and Rubyinline. But it has failed to work properly on the server and we would recommend you to go with Rmagic instead for the time being.
2007-05-13 08:55 AM
- Iand
- Posts: 5
- Starts: 3
- Wiki Edits: 0
What about Mini Magick?
I'm just aware that RMagick frequently hangs if large files are uploaded (due to memory leaks).
I'm just aware that RMagick frequently hangs if large files are uploaded (due to memory leaks).
2007-05-13 09:05 AM
- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
Mini Magick should be fine. In case the server (where you are hosting your account) does'nt have the required gem installed, then do post a ticket to our support department.
2007-05-13 09:28 AM
- Chad
- Posts: 9
- Starts: 4
- Wiki Edits: 0
If there is ANY way to get ImageScience working on your servers, that would be great. RMagick is an absolute memory-eating monster (MiniMagick is better, but only marginally), and for apps (such as my 2 apps hosted here) that JUST need image resizing/cropping, ImageScience saves a TON on memory usage and makes life much simpler.
Much appreciated.
Much appreciated.
2007-05-31 08:52 AM
- William
- Posts: 1062
- Starts: 32
- Wiki Edits: 56
Until we get it working, I'd recommend just making system calls to perform the raw ImageMagick convert commands - that saves the most amount of memory.
e.g.
e.g.
system("convert public/images/path/to/dragon.gif -resize 64x64\> public/images/path/to/shrink_dragon.gif")see http://www.imagemagick.org/Usage/resize/2007-05-31 09:01 AM
- Timberford
- Posts: 3
- Starts: 1
- Wiki Edits: 0
- Location: Surrey, UK
is there any update on getting imagesciene and freeimage running on the servers?
2007-06-04 01:34 PM
paulsturgess.co.uk- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
I've now installed Freeimage and image_science with other dependencies. Does that help ?
2007-06-04 03:23 PM
- Timberford
- Posts: 3
- Starts: 1
- Wiki Edits: 0
- Location: Surrey, UK
- Marick
- Posts: 3
- Starts: 3
- Wiki Edits: 1
- Location: Champaign, IL, USA
Image_science doesn't seem to be working. When my migration tries to load a starting set of images, it seems to try to compile image_science:
== StartingImages: migrating ==================================================
== StartingImages: reverting ==================================================
sh: /usr/bin/gcc: Permission denied
rake aborted!
error executing gcc -shared -fPIC -g -O2 -I /usr/local/lib/ruby/1.8/i686-linux -I /usr/local/include -o "/home/giantmi/.ruby_inline/Inline_ImageScience_aa58.so" "/home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c" -lfreeimage -lstdc++: 32256
Renamed /home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c to /home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c.bad
There's a gem out there:
giantmi@calvin [~/gmfans]# gem list | grep science
image_science (1.1.3)
But it doesn't load:
giantmi@calvin [~/gmfans]# irb
irb(main):001:0> require 'image_science'
LoadError: no such file to load -- image_science
from (irb):1:in `require'
from (irb):1
(That's the right require: I checked on my development machine: MacOSX, same version of image_science).
== StartingImages: migrating ==================================================
== StartingImages: reverting ==================================================
sh: /usr/bin/gcc: Permission denied
rake aborted!
error executing gcc -shared -fPIC -g -O2 -I /usr/local/lib/ruby/1.8/i686-linux -I /usr/local/include -o "/home/giantmi/.ruby_inline/Inline_ImageScience_aa58.so" "/home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c" -lfreeimage -lstdc++: 32256
Renamed /home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c to /home/giantmi/.ruby_inline/Inline_ImageScience_aa58.c.bad
There's a gem out there:
giantmi@calvin [~/gmfans]# gem list | grep science
image_science (1.1.3)
But it doesn't load:
giantmi@calvin [~/gmfans]# irb
irb(main):001:0> require 'image_science'
LoadError: no such file to load -- image_science
from (irb):1:in `require'
from (irb):1
(That's the right require: I checked on my development machine: MacOSX, same version of image_science).
2007-09-07 02:54 PM
- William
- Posts: 1062
- Starts: 32
- Wiki Edits: 56
You need to
require 'rubygems'
before
require 'image_science'
however, this gives the gcc error. We're looking into this and will keep you posted here.
require 'rubygems'
before
require 'image_science'
however, this gives the gcc error. We're looking into this and will keep you posted here.
2007-09-08 08:16 AM
- William
- Posts: 1062
- Starts: 32
- Wiki Edits: 56
OK - we have a workaround for this. We can copy the pre-compiled lib to your ~/.ruby_inline folder and it works.
Please go ahead and open a support ticket and request that this be done on your account (please refer to this forum thread)
Please go ahead and open a support ticket and request that this be done on your account (please refer to this forum thread)