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 » 2016-11-05T11:35:57-07:00

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: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-05T12:11:19-07:00

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 » 2016-11-05T12:16:48-07:00

I am using own computer exatly wamp server

User avatar
fmw42
Posts: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-05T12:22:13-07:00

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 » 2016-11-05T12:35:41-07:00

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: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-05T12:55:18-07:00

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 » 2016-11-05T13:03:38-07:00

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: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-05T13:12:32-07:00

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 » 2016-11-05T13:18:46-07:00

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: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-05T14:40:48-07:00

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 » 2016-11-06T10:31:48-07:00

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: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-06T11:39:13-07:00

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 » 2016-11-06T14:01:54-07:00

yes I am , and I can convert svg to png or jpg in command window

User avatar
fmw42
Posts: 22080
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

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

Post by fmw42 » 2016-11-06T15:08:30-07:00

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 » 2016-11-07T09:07:37-07:00

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