ImageMagick no decode delegate

前端 未结 10 2413
囚心锁ツ
囚心锁ツ 2020-11-30 01:59

I\'m trying to convert an image with imagemagick, but I\'m getting this error:

convert: no decode delegate for this image format `//i.imgur.com/nTheJ.

相关标签:
10条回答
  • 2020-11-30 02:02

    redhat4.8, If you install from source, may be can try:

    yum remove libjpeg

    wget http://www.imagemagick.org/download/delegates/jpegsrc.v9a.tar.gz

    sudo tar xvf jpegsrc.v9a.tar.gz -C /usr/local/src/

    cd /usr/local/src/jpeg-9a

    ./configure --enable-shared

    make

    sudo make install

    than turn in ImageMagick

    cd ImageMagick-6.9.6-4

    ./configure

    sudo make install

    sudo ldconfig /usr/local/lib

    0 讨论(0)
  • 2020-11-30 02:06

    I had this error when rendering an image using DragonFly in Rails. This happened after I upgraded to Lion (ImageMagick was installed using Brew).

    I reinstalled ImageMagick, jpeg, libtiff and jasper (reinstalling ImageMagick wasn't enough by itself).

    brew uninstall imagemagick jpeg libtiff jasper
    brew install imagemagick
    

    Prior to that, running

    identify -list format
    

    and jpeg wasn't in the list. After reinstalling the above packages jpeg appeared in the list.

    0 讨论(0)
  • 2020-11-30 02:11

    In my case, the solution was a matter of ending the command with *.{jpg,png} rather than *.

    I believe the * was picking up / trying to convert hidden files.

    0 讨论(0)
  • 2020-11-30 02:14

    from Phillip Ingram somewhere on the interwebs:

    in gentoo use

    sudo EXTRA_ECONF="--with-png --with-jpeg" emerge imagemagick"
    

    This is slightly different than Jonathan Horseman's answer since it wasn't an error but rather a need to specify more during the installation.

    But the identify command was very useful.

    Hope this helps someone (and perhaps me in the future ;).

    0 讨论(0)
  • 2020-11-30 02:15

    for me:

     brew reinstall imagemagick --with-libtiff
    

    saved the day when dealing with a similar problem, but for tiff files.

    UPDATE: one year later and this remains the only way I can get tiff working properly in convert on MacOS X.

    0 讨论(0)
  • 2020-11-30 02:15

    I faced the same problem recently. After Googling for couple of hours, I found out that reason was a CONFLICT between php extentions Gmagick & Imagick. Commenting gmagick.so in php.ini fixed the problem. Hope this will save someone time :)

    0 讨论(0)
提交回复
热议问题