# Rmagick not handling GIF files properly

**URL:** <https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699>\
**Category:** Rails\
**Created:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699 "2006-08-15T14:17:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699/1 "2006-08-15T14:17:54Z")

</div>

Tracked down the source of my problem…

It seems that Rmagick isn’t properly cropping/resizing GIF or PNG images  
when uploaded via file\_column. I can upload JPG files just fine.

Originally I had installed ImageMagick via Debian’s apt-get and built  
the  
rmagick gem using “gem install rmagick”. This wasn’t working so I  
uninstalled ImageMagick and tried to compile GraphicsMagick by hand,  
then  
reinstall the rmagick gem.

This also isn’t working, and it’s driving me nuts. The same code works  
perfectly on my OS X dev machine.

Does anyone have pointers to get this working properly? Please help!  
Thanks…

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699/2 "2006-08-15T14:17:54Z")

</div>

have you got the libgif / libpng headers installed?

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699/3 "2006-08-15T14:18:05Z")

</div>

I think I do - but how do I make sure?

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699/4 "2006-08-15T14:18:08Z")

</div>

One other thing that might be helpful:

I’m trying to build RMagick from source now, and after running:

./configure --with-graphics-magick  
make

I’m getting this…error over and over again (with different rb scripts)

/home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in  
`get_type_metrics': Postscript delegate failed (Magick::ImageMagickError) from /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:317:in`render’  
from /home/seth/src/RMagick-1.13.0/./lib/rvg/misc.rb:688:in  
`text' from /home/seth/src/RMagick-1.13.0/./lib/rvg/text.rb:64:in`add\_primitives’  
from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in  
`add_primitives' from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in`each’  
from /home/seth/src/RMagick-1.13.0/./lib/rvg/container.rb:71:in  
`add_primitives' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in`add\_outermost\_primitives’  
from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in  
`each' from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:262:in`add\_outermost\_primitives’  
from /home/seth/src/RMagick-1.13.0/./lib/rvg/rvg.rb:235:in  
`draw’  
from InitialCoords.rb:22

---

<div class="post-metadata">

**Author:** ![subimage](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@subimage](https://www.ruby-forum.com/u/subimage)\
**Post date:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/rmagick-not-handling-gif-files-properly/64699/5 "2006-08-15T14:18:31Z")

</div>

## For anyone who cares, got RMagick installed after installing ghostscript

but when I try to upload an image now I get an Application Error page  
with  
nothing in the apache or rails error log.

I’m going nuts here! Has anyone built RMagick on a debian box FROM  
SCRATCH /  
SOURCE and have it fully working? Please help!!!
