ImageMagick no decode delegate

前端 未结 10 2414
囚心锁ツ
囚心锁ツ 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:15

    i had the problem and i forgot put to obj downloaded photo against i put path.

    file_get_contents($pathToPhoto)

    maybe someone help :[

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

    I have encountered a similar problem with TIFF files on ImageMagick v7.0.4-5 on Windows 7.

    If this question concerns a Windows OS, then the cause is that Windows can't find the Jpeg (in my case, TIFF) file library (DLL).

    Cause

    I had installed ImageMagick without adding it to the Windows $PATH.

    Error message

    This resulted in error

    identify: unable to load module 'C:\Program Files\ImageMagick-7.0.4-Q16\modules\coders\IM_MOD_RL_TIFF_.dll':
    The specified module could not be found.
     @ error/module.c/OpenModule/1279.
    identify: no decode delegate for this image format `TIFF'
     @ error/constitute.c/ReadImage/509.
    

    Solution

    • Re-install ImageMagick and do add it to the $PATH, so that it can find libtiff. Restart your command shell as well.
    • First cd into ImageMagick's install folder before executing it.
    0 讨论(0)
  • 2020-11-30 02:19

    on Ubuntu 16, I had to install the following first (this was not a dev machine but a server):

    sudo apt-get install autoconf automake autotools-dev libtool pkg-config 
    

    then to enable the PNG and JPG delegates :

    sudo apt-get install libpng12 libpng12-dev libjpeg libjpeg-dev
    

    followed by

    ./configure
    

    (Which should now show that the delegates are enabled)

    and then rebuild (make clean && make then sudo make install)

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

    substitude the × in -resize 600×600 with a capital X and it should work.

    -resize 600X600
    
    0 讨论(0)
提交回复
热议问题