In case anyone else runs into this problem, I had the same error on my Mac OSX Snow Leopard when processing JPG files (GIF files worked fine, though). I am running Rails 3.0.5 and Paperclip 2.3.11.
[paperclip] An error was received while processing:
I fixed the problem by installing the jpeg coding library from the source, available at http://www.ijg.org/files/jpegsrc.v8c.tar.gz .
cd /usr/local/src tar xvfz jpeg-8c.tar.gz cd jpeg-8c export MACOSX_DEPLOYMENT_TARGET=10.6 ./configure --enable-shared --prefix=$CONFIGURE_PREFIX make sudo make install
Then I installed ImageMagick from the source again:
cd /usr/local/src tar xvfz ImageMagick-6.6.9-5.tar.gz cd ImageMagick-6.6.9-5 export CPPFLAGS=-I/usr/local/include export LDFLAGS=-L/usr/local/lib ./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp make sudo make install
After that, I was able to successfully download JPG files using Paperclip.
[paperclip] convert '/var/folders/9D/9DvX1hqSFr04U3drvD9o0U+++TI/-Tmp-/stream20110420-86578-3ntsgn.jpg[0]' -resize "100x100>" '/var/folders/9D/9DvX1hqSFr04U3drvD9o0U+++TI/-Tmp-/stream20110420-86578-3ntsgn20110420-86578-iiszw5' 2>/dev/null ... [paperclip] saving /Users/xxx/myrailsapp/public/system/images/5/original/IMG_0001.jpg
source share