Page 2 of 3

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

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

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

Posted: 2016-11-05T12:11:19-07:00
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.

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

Posted: 2016-11-05T12:16:48-07:00
by Mahir
I am using own computer exatly wamp server

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

Posted: 2016-11-05T12:22:13-07:00
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.

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

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

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

Posted: 2016-11-05T12:55:18-07:00
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.

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

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

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

Posted: 2016-11-05T13:12:32-07:00
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?

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

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

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

Posted: 2016-11-05T14:40:48-07:00
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?

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

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

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

Posted: 2016-11-06T11:39:13-07:00
by fmw42
Did you try to convert the svg file in the command window?

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

Posted: 2016-11-06T14:01:54-07:00
by Mahir
yes I am , and I can convert svg to png or jpg in command window

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

Posted: 2016-11-06T15:08:30-07:00
by fmw42
Can you convert your svg file to png or jpg? If not, then edit it as bonzo suggested earlier.

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

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