no decode delegate for this image format `' @ error/blob

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

fmw42 when I try this code :

exec("C:\imagemagick\convert -version",$out,$returnval);
print_r($out[0]);

I get this version : Version: ImageMagick 6.9.3-7 Q16 x64 2016-03-27 http://www.imagemagick.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

Seems you have a problem with IM versions if you think you have IM 7 installed there. You may have a conflict with multiple versions of IM. Is this your own computer or a hosted site? If the latter, you should check with your ISP to find out what is installed where and what version Imagick uses. If it is your own computer, then you should check further into what IM version is installed where.

Can you run in command line mode from a terminal (command) window?

Did you get more information returned other than just 6.9.3-7? Something about DELEGATES.
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

I am using own computer exatly wamp server
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

Sorry I know nothing about wamp servers. I am not a Windows user.

Can you open a command window and run IM commands there without the PHP?

What other information about Delegates was returned from the convert -version?

Please answer my questions, so I do not have to repeat.
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

I make path cd\imagemagick and than run command IM and get this mesage:
'IM'is not reorganized as an internal or external command,oprable program or batch file
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

In a command window, type

cd C:\imagemagick
convert -version

or possibly

convert.exe -version

Though that may not work and might give you the windows convert command and not the Imagemagick convert command.
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

I get this info about Delegates:

Delegates <built-in>:bzlib cairo freetype jng jp2 jpeg Icms Igr lgr openxr pabgoca iro png ps tiff webp xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

Do you get the same from

Code: Select all

<?php
exec("C:\imagemagick\convert -version",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>
In your terminal or command window, do these work:

Code: Select all

cd C:\imagemagick
convert logo: logo.jpg
convert logo: logo.png
Where is your IM 7?


Here is an SVG file:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="12cm" height="4cm" viewBox="0 0 1200 400"
     xmlns="http://www.w3.org/2000/svg" version="1.1">
  <desc>Example rect01 - rectangle with sharp corners</desc>

  <!-- Show outline of canvas using 'rect' element -->
  <rect x="1" y="1" width="1198" height="398"
        fill="none" stroke="blue" stroke-width="2"/>

  <rect x="400" y="100" width="400" height="200"
        fill="yellow" stroke="navy" stroke-width="10"  />
</svg>
save to rect.svg

Then in your command window, do

Code: Select all

cd C:\imagemagick
convert rect.svg rect.png
Does that work?
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

when I try:
<?php
exec("C:\imagemagick\convert -version",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>
I get same info like in command window,I get this info:
Version: ImageMagick 6.9.3-7 Q16 x64 2016-03-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 170061030
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

What about all my other suggestions/questions? What happened with those tests?

You listed different lists?

The first time above:
bzlib cairo freetype jng jp2 jpeg Icms Igr lgr openxr pabgoca iro png ps tiff webp xml zlib
No RSVG and lgr listed twice? What is lgr?

The second time above:
bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib
Shows RSVG and a prope lqr!

What is with that difference?
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

I can convert logo in command window,
and I do not know why show me difference ,first time I get from command window:
"bzlib cairo freetype jng jp2 jpeg Icms Igr lgr openxr pabgoca iro png ps tiff webp xml zlib"

,second timee when I try php code you sent, I get :
"bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib"
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

Did you try to convert the svg file in the command window?
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

yes I am , and I can convert svg to png or jpg in command window
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: no decode delegate for this image format `' @ error/blob

Post by fmw42 »

Can you convert your svg file to png or jpg? If not, then edit it as bonzo suggested earlier.
Mahir
Posts: 47
Joined: 2016-10-22T06:58:23-07:00
Authentication code: 1151

Re: no decode delegate for this image format `' @ error/blob

Post by Mahir »

I told you twice:"I can convert svg to png or jpg in command window"!!
but ony in command window,BUT
I need convert it on php platform and when I try I get error:
"no decode delegate for this image format"
Post Reply