Libraries for JPEG resizing in Windows Environment

A

Alex DeCaria

I'd like an idea as to what other image processing libraries are
available besides RMagick and MiniMagick. I'm currently successfully
using RMagick with Ruby 1.8, and I've also been able to get MiniMagick
working with Ruby 1.9, but the problem is that MiniMagick with Ruby 1.9
doesn't seem to work on my 64-bit windows OS (it does on 32-bit though).

I only need the library for one specific task. Reading in a .jpeg file
and resizing it.

Are there other libraries that I should consider trying and that might
work on a 64-bit system? I see there is something called Camellia. Is
that for Windows, or just Linux/Mac?

I would really like to just use MiniMagick, but again, I can't seem to
get the mini_magick gem to work on my 64-bit OS (it installs fine, but
gives errors when it runs).

Any ideas are most appreciated.

--Alex
 
K

Kyle Schmitt

Camellia is more image recognition/computer vision type stuff.

If you're having trouble with RMagick/MiniMagick in 64 bit windows
OSes, my guess is you need to install a more up-to-date 64bit build of
ImageMagick or ImageScience. Check to make sure you have one of those
installed first, then try your gem again.

If it still doesn't work after you've installed ImageMagick or
ImageScience, try using the convert.exe program that comes with them.
You can always use ruby to shell out and run that program, if you
can't get the gem to work inside of ruby. Not as clean or as nice,
but workable for one-off situations.

--Kyle
 
A

Alex DeCaria

Kyle said:
Camellia is more image recognition/computer vision type stuff.

If you're having trouble with RMagick/MiniMagick in 64 bit windows
OSes, my guess is you need to install a more up-to-date 64bit build of
ImageMagick or ImageScience. Check to make sure you have one of those
installed first, then try your gem again.

If it still doesn't work after you've installed ImageMagick or
ImageScience, try using the convert.exe program that comes with them.
You can always use ruby to shell out and run that program, if you
can't get the gem to work inside of ruby. Not as clean or as nice,
but workable for one-off situations.

--Kyle
Thanks Kyle,

What's odd though is RMagick with Ruby 1.8 does work on my 64-bit OS, so
I think the version of ImageMagick I'm using is OK. Since there isn't
an RMagick gem for Ruby 1.9 that's why I decided to try MiniMagick
instead for 1.9. But, maybe it will be worth a try to get a 64-bit
build of ImageMagick or ImageScience and see how that goes.

I also like your suggestion of running the shell commmand outside of
Ruby as a backup. I hadn't thought of that.

--Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top