#33 new

attachment_fu does not create thumbnails...

Reported by sunday | September 20th, 2008 @ 05:49 AM


i use attachment_fu in a rails app called community_engine.

On my MacBook everything works fine with image uploading and thumbnail creation. After porting the application to my Provider in a centos environment, it only handles the original file (upload, copy to dir, enter a record in the table "photos")

The expected thumbnail generation is skipped - silently. So i searched the web, found similar problems - with no answers... Debugging shows that no error happens. The callbacks are simply not called. Thats all. And it is impossible to find out why.

After several hours of hunting the bug i hope the pros here can help me. I assume the reason is something like "version 1.5 of X does not work with version 2.x of Y, when using Z in Version 3.1"

So here is my Setup:

ruby 1.8.5 (2006-08-25) [x86_64-linux] rails 2.1.1 ImageMagick-6.4.1-10

OS: CentOS 5 mit Plesk 8.3 (64 Bit)

installed gems:

actionmailer (2.1.1) actionpack (2.1.1) activerecord (2.1.1) activeresource (2.1.1) activesupport (2.1.1) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.1) gem_plugin (0.2.3) haml (2.0.3) hpricot (0.6.161) htmlentities (4.0.0) mongrel (1.1.5) mongrel_cluster (1.0.5) mysql (2.7) rails (2.1.1) rake (0.8.1) rdoc (2.1.0) RedCloth (4.0.3) rmagick (2.6.0, 2.5.2)

Delegates are:

DELEGATES bzlib fontconfig freetype gs jpeg lcms png tiff x11 xml wmf zlib

Perhaps someone can check if there are any incompatibilties or give me a hint, how to find out what's going wrong.

Your help is much appreciated.



Comments and changes to this ticket

  • sunday

    sunday September 20th, 2008 @ 06:03 AM

    • Assigned user set to “Rick”

    the make check on ImageMagick throws:

    All 661 tests behaved as expected (33 expected failures)

    so no problem there

    testing the RMagick gem:

    ruby demo.rb

    demo.rb:8:in require': no such file to load -- RMagick (LoadError)

    from demo.rb:8

    could the problem be caused by the fact, that ruby has been installed in /usr/lib64/ruby instead of /usr/lib/ruby ?

  • sunday

    sunday September 20th, 2008 @ 03:07 PM

    • Assigned user cleared.

    Ok - got it...

    even if the installation of the rmagick gem quits with "successfully installed" - it was not.

    so rmagick gives the error message, that rmagick...so is missing. But it misses libmagickwand which itself has been installed in /usr/local/lib.

    That path is not included in LD_LIBRARY_PATH by default, so i had to add it to my conf as described here....


    so it's not an attachment_fu issue and can be closed...

    (even if we all know that attachment_fu could be more conversable for debugging ^^)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket