# Libraries for JPEG resizing in Windows Environment

**URL:** <https://www.ruby-forum.com/t/libraries-for-jpeg-resizing-in-windows-environment/183756>\
**Category:** Ruby\
**Created:** [February 19, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/libraries-for-jpeg-resizing-in-windows-environment/183756 "2010-02-19T15:10:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [February 19, 2010, 3:10pm UTC](https://www.ruby-forum.com/t/libraries-for-jpeg-resizing-in-windows-environment/183756/1 "2010-02-19T15:10:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [February 19, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/libraries-for-jpeg-resizing-in-windows-environment/183756/2 "2010-02-19T15:24:03Z")

</div>

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

On Fri, Feb 19, 2010 at 8:10 AM, Alex DeCaria

---

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [February 19, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/libraries-for-jpeg-resizing-in-windows-environment/183756/3 "2010-02-19T15:32:43Z")

</div>

Kyle S. wrote:

> 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
> 
> On Fri, Feb 19, 2010 at 8:10 AM, Alex DeCaria

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
