• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3956
  • Last Modified:

Can't make Imagick work - ImageMagick Number of supported formats: 0 ??

Hi Guys.
I'm trying to install and use Imagick on a Windows Vista.

My system is : Windows Vista, Apache 2, PHP 5.2.6, ImageMagick 6.4.3

I downloaded php_imagick_dyn-Q16.dll from http://valokuva.org/?page_id=50, installed it and after a lot of testing I finally got it to load Imagick...

But strangely enough now it tell's me that it knows 0 file formats (see screencap) !?

Please help me make this work - I'm going to use it to on-the-fly convert tif->png without saving any thumbnails on the drive.


imagick.gif
0
trg_dk
Asked:
trg_dk
  • 10
  • 7
1 Solution
 
f_o_o_k_yCommented:
What is your Imagick installation path?
0
 
trg_dkAuthor Commented:
C:\ImageMagick
0
 
trg_dkAuthor Commented:
The weird thing is that now I can't even use "convert inputfile.tif outfile.png" - I get a "No decode delegate for this image" !!???!!

Any ideas on what is going on ?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
trg_dkAuthor Commented:
Here's the result from convert -list configure ::
Path: configure.xml  Name          Value ------------------------------------------------------------------------------- CC            vs7 COPYRIGHT     Copyright (C) 1999-2008 ImageMagick Studio LLC DELEGATES     bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib HOST          windows-unknown-linux-gnu LIB_VERSION   0x644 LIB_VERSION_NUMBER 6,4,5,7 NAME          ImageMagick RELEASE_DATE  2008-12-01 VERSION       6.4.5 WEBSITE       http://www.imagemagick.org 
0
 
f_o_o_k_yCommented:
Try to use
-debug configure

with the command.
0
 
f_o_o_k_yCommented:
Find magic.xml and check it's content.

I assume that you have downloaded appropriate delegate (DLL) libraries?
0
 
trg_dkAuthor Commented:
When I do (in php) passthru("convert -debug configure") I get nothing ??!!
0
 
f_o_o_k_yCommented:
Can you do this from cmd?
0
 
f_o_o_k_yCommented:
And by the way
convert -debug configure inputfile.tif outfile.png
0
 
trg_dkAuthor Commented:
Here's the result from CMD ::


J:\>convert -debug configure "C:\Program Files\Apache Software Foundation\Apache
2.2\htdocs\web-verify\input\41-303A02547444.tif" "C:\Program Files\Apache Softwa
re Foundation\Apache2.2\htdocs\web-verify\done\webverify4922ab82f3c5a.png"
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: utility.c/E
xpandFilenames/808/Configure
  Command line: convert {-debug} {configure} {C:\Program Files\Apache Software F
oundation\Apache2.2\htdocs\web-verify\input\41-303A02547444.tif} {C:\Program Fil
es\Apache Software Foundation\Apache2.2\htdocs\web-verify\done\webverify4922ab82
f3c5a.png}
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  ConfigurePath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: configure.c
/GetConfigureOptions/528/Configure
  Searching for configure file: "C:\ImageMagick-6.4.5-Q16\config\magic.xml"
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: configure.c
/GetConfigureOptions/528/Configure
  Searching for configure file: "C:\Users\edbmab\.magick\magic.xml"
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: configure.c
/GetConfigureOptions/528/Configure
  Searching for configure file: "c:\imagemagick\magic.xml"
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: configure.c
/GetConfigureOptions/528/Configure
  Searching for configure file: "magic.xml"
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: magic.c/Loa
dMagicList/681/Configure
  Loading magic configure file "magic.xml" ...
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1622/Configure
  SOFTWARE\ImageMagick\6.4.5\Q:16
2008-11-18T12:48:28+01:00 0:01 0.000u 6.4.5 Configure convert[6052]: nt-base.c/N
TRegistryKeyLookup/1640/Configure
  CoderModulesPath
convert: no decode delegate for this image format `C:\Program Files\Apache Softw
are Foundation\Apache2.2\htdocs\web-verify\input\41-303A02547444.tif' @ \Users\c
risty\ImageMagick-6.4.5\magick\constitute.c/ReadImage/526.
convert: missing an image filename `C:\Program Files\Apache Software Foundation\
Apache2.2\htdocs\web-verify\done\webverify4922ab82f3c5a.png' @ \Users\cristy\Ima
geMagick-6.4.5\wand\convert.c/ConvertImageCommand/2710.

J:\>
0
 
trg_dkAuthor Commented:
I'm wondering::
@ \Users\cristy\ImageMagick-6.4.5\magick\constitute.c/ReadImage/526.

Who is Christy and what is she doing on my computer ?? (we have no christy and never had!)
0
 
f_o_o_k_yCommented:
Yeah that strange :)
Do you have MAGICK_HOME environment set correctly?

Can you post magic.xml?

Do you have
constitute.c in your ImageMagick home directory ?
0
 
trg_dkAuthor Commented:
Magic.xml is attached

No - I don't have constitute.c as far as I can see!

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE magicmap [
<!ELEMENT magicmap (magic)+>
<!ELEMENT magic (#PCDATA)>
<!ATTLIST magic name CDATA #REQUIRED>
<!ATTLIST magic offset CDATA "0">
<!ATTLIST magic target CDATA #REQUIRED>
]>
<magicmap>
  <magic name="AVI" offset="0" target="RIFF"/>
  <magic name="8BIMWTEXT" offset="0" target="8\000B\000I\000M\000#"/>
  <magic name="8BIMTEXT" offset="0" target="8BIM#"/>
  <magic name="8BIM" offset="0" target="8BIM"/>
  <magic name="BMP" offset="0" target="BA"/>
  <magic name="BMP" offset="0" target="BM"/>
  <magic name="BMP" offset="0" target="CI"/>
  <magic name="BMP" offset="0" target="CP"/>
  <magic name="BMP" offset="0" target="IC"/>
  <magic name="BMP" offset="0" target="PI"/>
  <magic name="CGM" offset="0" target="BEGMF"/>
  <magic name="CIN" offset="0" target="\200\052\137\327"/>
  <magic name="CRW" offset="0" target="II\x1a\x00\x00\x00HEAPCCDR"/>
  <magic name="DCM" offset="128" target="DICM"/>
  <magic name="DCX" offset="0" target="\261\150\336\72"/>
  <magic name="DDS" offset="0" target="DDS "/>
  <magic name="DIB" offset="0" target="\050\000"/>
  <magic name="DJVU" offset="0" target="AT&amp;TFORM"/>
  <magic name="DOT" offset="0" target="digraph"/>
  <magic name="DPX" offset="0" target="SDPX"/>
  <magic name="DPX" offset="0" target="XPDS"/>
  <magic name="EMF" offset="40" target="\040\105\115\106\000\000\001\000"/>
  <magic name="EPT" offset="0" target="\305\320\323\306"/>
  <magic name="EXR" offset="0" target="\166\057\061\001"/>
  <magic name="FAX" offset="0" target="DFAX"/>
  <magic name="FIG" offset="0" target="#FIG"/>
  <magic name="FITS" offset="0" target="IT0"/>
  <magic name="FITS" offset="0" target="SIMPLE"/>
  <magic name="FPX" offset="0" target="\320\317\021\340"/>
  <magic name="GIF" offset="0" target="GIF8"/>
  <magic name="GPLT" offset="0" target="#!/usr/local/bin/gnuplot"/>
  <magic name="HDF" offset="1" target="HDF"/>
  <magic name="HPGL" offset="0" target="IN;"/>
  <magic name="HTML" offset="1" target="HTML"/>
  <magic name="HTML" offset="1" target="html"/>
  <magic name="ILBM" offset="8" target="ILBM"/>
  <magic name="IPTCWTEXT" offset="0" target="\062\000#\000\060\000=\000\042\000&amp;\000#\000\060\000;\000&amp;\000#\000\062\000;\000\042\000"/>
  <magic name="IPTCTEXT" offset="0" target="2#0=\042&amp;#0;&amp;#2;\042"/>
  <magic name="IPTC" offset="0" target="\034\002"/>
  <magic name="JNG" offset="0" target="\213JNG\r\n\032\n"/>
  <magic name="JPEG" offset="0" target="\377\330\377"/>
  <magic name="JPC" offset="0" target="\377\117"/>
  <magic name="JP2" offset="4" target="\152\120\040\040\015"/>
  <magic name="MIFF" offset="0" target="Id=ImageMagick"/>
  <magic name="MIFF" offset="0" target="id=ImageMagick"/>
  <magic name="MNG" offset="0" target="\212MNG\r\n\032\n"/>
  <magic name="MPC" offset="0" target="id=MagickCache"/>
  <magic name="MPEG" offset="0" target="\000\000\001\263"/>
  <magic name="MRW" offset="0" target="\x00MRM"/>
  <magic name="ORF" offset="0" target="IIRO\x08\x00\x00\x00"/>
  <magic name="PCD" offset="2048" target="PCD_"/>
  <magic name="PCL" offset="0" target="\033E\033"/>
  <magic name="PCX" offset="0" target="\012\002"/>
  <magic name="PCX" offset="0" target="\012\005"/>
  <magic name="PDB" offset="60" target="vIMGView"/>
  <magic name="PDF" offset="0" target="%PDF-"/>
  <magic name="PFA" offset="0" target="%!PS-AdobeFont-1.0"/>
  <magic name="PFB" offset="6" target="%!PS-AdobeFont-1.0"/>
  <magic name="PGX" offset="0" target="\050\107\020\115\046"/>
  <magic name="PICT" offset="522" target="\000\021\002\377\014\000"/>
  <magic name="PNG" offset="0" target="\211PNG\r\n\032\n"/>
  <magic name="PNM" offset="0" target="P1"/>
  <magic name="PNM" offset="0" target="P2"/>
  <magic name="PNM" offset="0" target="P3"/>
  <magic name="PNM" offset="0" target="P4"/>
  <magic name="PNM" offset="0" target="P5"/>
  <magic name="PNM" offset="0" target="P6"/>
  <magic name="PNM" offset="0" target="P7"/>
  <magic name="PNM" offset="0" target="PF"/>
  <magic name="PNM" offset="0" target="Pf"/>
  <magic name="PS" offset="0" target="%!"/>
  <magic name="PS" offset="0" target="\004%!"/>
  <magic name="PS" offset="0" target="\305\320\323\306"/>
  <magic name="PSD" offset="0" target="8BPS"/>
  <magic name="PWP" offset="0" target="SFW95"/>
  <magic name="RAD" offset="0" target="#?RADIANCE"/>
  <magic name="RAD" offset="0" target="VIEW= "/>
  <magic name="RAF" offset="0" target="FUJIFILMCCD-RAW "/>
  <magic name="RLE" offset="0" target="\122\314"/>
  <magic name="SCT" offset="0" target="CT"/>
  <magic name="SFW" offset="0" target="SFW94"/>
  <magic name="SGI" offset="0" target="\001\332"/>
  <magic name="SUN" offset="0" target="\131\246\152\225"/>
  <magic name="SVG" offset="1" target="?XML"/>
  <magic name="SVG" offset="1" target="?xml"/>
  <magic name="TXT" offset="0" target="# ImageMagick pixel enumeration:"/>
  <magic name="TIFF" offset="0" target="\115\115\000\052"/>
  <magic name="TIFF" offset="0" target="\111\111\052\000"/>
  <magic name="TIFF64" offset="0" target="\115\115\000\053\000\010\000\000"/>
  <magic name="TIFF64" offset="0" target="\111\111\053\000\010\000\000\000"/>
  <magic name="VICAR" offset="0" target="LBLSIZE"/>
  <magic name="VICAR" offset="0" target="NJPL1I"/>
  <magic name="VIFF" offset="0" target="\253\001"/>
  <magic name="WMF" offset="0" target="\327\315\306\232"/>
  <magic name="WMF" offset="0" target="\001\000\011\000"/>
  <magic name="WPG" offset="0" target="\377WPC"/>
  <magic name="XBM" offset="0" target="#define"/>
  <magic name="XCF" offset="0" target="gimp xcf"/>
  <magic name="XPM" offset="1" target="* XPM *"/>
  <magic name="XWD" offset="4" target="\007\000\000"/>
  <magic name="XWD" offset="5" target="\000\000\007"/>
  <magic name="XEF" offset="0" target="FOVb"/>
</magicmap>

Open in new window

0
 
f_o_o_k_yCommented:
What about MAGICK_HOME env?

Where is this Magic.xml located?

Try using Elevated CMD (Start button, type cmd , pres ctrl+shift+enter)
then go to magic home dir
and copy there input file
then run
convert input.tiff output.png

and check result
I think this is because there might be problem with accessing C:\ImageMagick by regular user or beacause of UAC or something like this.


0
 
trg_dkAuthor Commented:
No matter who Christy is.... I uninstalled I, removed all from environment path's.
Reinstalled IM in latest revision and tested the convert from commandline - and voila it worked.
Tested Imagick from PHP and now that work's also :-)

Super trooper

I'll close up and award you the points fooky - thanks for the effort
0
 
trg_dkAuthor Commented:
Oh - didn't catch your response - sorry

Not sure what the issue was - but now it works. Still has to make it work on my Win Server 2003 though :-O

Cheers,
Mark
0
 
trg_dkAuthor Commented:
OK so we didn't find the cause - but now it is working. So here's for the effort!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now