# MiniMagick... Core Dump when Reszing Images?

**URL:** <https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340>\
**Category:** Rails\
**Created:** [May 29, 2007, 1:27am UTC](https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340 "2007-05-29T01:27:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@miles](https://www.ruby-forum.com/u/miles)\
**Post date:** [May 29, 2007, 1:27am UTC](https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340/1 "2007-05-29T01:27:29Z")

</div>

Hi,

I’m using Mini Magick and that attachment\_fu plugin to resize images  
that the user uploads. Everything looks okay in my code, but I get a  
core dump every time an image is uploaded.

The file successfully posts to the application, I can see that the  
original file gets copied into the folder correctly. It appears that  
it dumps immediately after that. I’m using Mongrel behind Apache 2 and  
there aren’t any interesting error messages in the log files.

Has anyone seen anything like this before? I’ve been banging away at  
it for a while.

Thank you,  
– Miles

PS: I am currently using…

FreeBSD 6.1  
Apache 2.2.4  
MySQL 5.0.41  
ImageMagick 6.2.9

Ruby 1.8.6  
Rails 1.2.3  
Mongrel 1.0.1  
Mongrel\_Cluster 0.2.1  
Mini\_Magick 1.2.0

---

<div class="post-metadata">

**Author:** ![miles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@miles](https://www.ruby-forum.com/u/miles)\
**Post date:** [May 29, 2007, 1:43am UTC](https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340/2 "2007-05-29T01:43:30Z")

</div>

I ran the rake on the mini\_magick gem and it looks really unhapppy…  
I’m starting to think this might be an ImageMagick installation  
problem.

(in /usr/local/lib/ruby/gems/1.8/gems/mini\_magick-1.2.0)  
/usr/local/bin/ruby18 -Ilib:lib “/usr/local/lib/ruby/gems/1.8/gems/  
rake-0.7.3/lib/rake/rake\_test\_loader.rb” “test/mini\_magick\_test.rb”  
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/  
rake\_test\_loader  
Started  
…mogrify: unable to open module file `/usr/local/lib/ImageMagick/ modules-Q16/coders/2.la': No such file or directory. .....mogrify: unable to open module file`/usr/local/lib/ImageMagick/  
modules-Q16/coders/3.la’: No such file or directory.  
.mogrify: unable to open module file `/usr/local/lib/ImageMagick/ modules-Q16/coders/4.la': No such file or directory. ..identify: no decode delegate for this image format`/usr/local/lib/  
ruby/gems/1.8/gems/mini\_magick-1.2.0/test/not\_an\_image.php’.  
…  
Finished in 2.536952 seconds.

– Miles

---

<div class="post-metadata">

**Author:** ![miles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@miles](https://www.ruby-forum.com/u/miles)\
**Post date:** [May 29, 2007, 3:16am UTC](https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340/3 "2007-05-29T03:16:35Z")

</div>

I reinstalled ImageMagick and mini\_magick looks a little happier. When  
I run the tests, this is what I get:

(in /usr/local/lib/ruby/gems/1.8/gems/mini\_magick-1.2.0)  
/usr/local/bin/ruby18 -Ilib:lib “/usr/local/lib/ruby/gems/1.8/gems/  
rake-0.7.3/lib/rake/rake\_test\_loader.rb” “test/mini\_magick\_test.rb”  
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/  
rake\_test\_loader  
Started  
…mogrify: unable to open module file `/usr/local/lib/ImageMagick/ modules-Q16/coders/2.la': No such file or directory. .....mogrify: unable to open module file`/usr/local/lib/ImageMagick/  
modules-Q16/coders/3.la’: No such file or directory.  
.mogrify: unable to open module file `/usr/local/lib/ImageMagick/ modules-Q16/coders/4.la': No such file or directory. ..identify: no decode delegate for this image format`/usr/local/lib/  
ruby/gems/1.8/gems/mini\_magick-1.2.0/test/not\_an\_image.php’.  
…  
Finished in 9.735413 seconds.

14 tests, 20 assertions, 0 failures, 0 errors

No failures or errors is a good thing, but I don’t know about those  
results. Maybe that’s how it’s supposed to look, but I’m suspicious.  
Anyway, I’m turning my attention to attachment\_fu next.

– Miles

---

<div class="post-metadata">

**Author:** ![miles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/47e85d/32.png) [@miles](https://www.ruby-forum.com/u/miles)\
**Post date:** [May 30, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/minimagick-core-dump-when-reszing-images/105340/4 "2007-05-30T15:56:04Z")

</div>

I gave up on attachment\_fu and wrote my own code to do generate the  
thumbnails (I used Mini Magick). It’s working great, this definitely  
must have been some kind of problem with attachment\_fu.

– Miles
