Php5-imagick on Ubuntu 14.04

I spent quite a bit of time looking for this problem, but to no avail, so I was hoping to get help here.

I am using Ubuntu 14.04 and I have installed php5-imagick, ImageMagick and some additional libraries for it to work. Testing the installation from the command line works fine, and all delegates are installed according to "convert -list configure" (the output is shown below).

He worked and worked perfectly. The only thing I can think of is some Ubuntu system / security updates. My code or installation of IM was changed by any user actions before this error occurred.

The problem is that I call Imagick from my PHP script, it shows this error:

#420: no decode delegate for this image format '/' @ error/constitute.c/ReadImage/544 

This error is shown for both JPG and PNG.

Any help is much appreciated!


The output of 'convert -version':

 Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP 

The output of the "convert -list configure" command:

 DELEGATES bzlib djvu fftw fontconfig freetype jbig jpeg jng jp2 lcms2 lqr lzma openexr pango png rsvg tiff x11 xml wmf zlib LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfftw3 -lfontconfig -lfreetype -lXext -lSM -lICE -lX11 -lXt -llzma -lbz2 -lz -lm -lgomp -lpthread -lltdl 
+5
source share
3 answers

I think the problem here is that Imagemagick is not configured to support SVG. Installing the basic php5-imagick package does not lead to any additional features that you will need for this.

To install SVG support in PHP Imagick, enter the following into the terminal on the server in question:

 sudo apt-get update sudo apt-get install libmagickcore5-extra 

Apt will display the download of dependent packages, including the SVG libraries, and ask you if you want to continue. Press Y and let her work with her.

+1
source

It seems you are trying to open a file named '/'.

Oddly enough, Imagick cannot open this file.

Try changing to the real image file name.

0
source

Check the file to be processed using the vim command. Probably not an image. I had a similar problem. You can see it here:

ImageMagick on Ubuntu 14.04 No Decoding Delegate

0
source

Source: https://habr.com/ru/post/1204309/


All Articles