> -----Original Message----- > "Marcel Wouterse" wrote... > | When i do the following simple command on the command line: > | > | convert -background lightblue -fill red -font Verdana -pointsize 72 > | label:Marcel label.gif > | > | I get the following error. > | convert: unable to open file `type-ghostscript.xml': No such file or > | directory. > | > | Is this something i can solve myself?
I have the same problem. Also, a search on imagemagick.org finds http://studio.imagemagick.org/magick/viewtopic.php?p=15669 from infoundry, Installed ImageMagick-6.2.5-4-Q8-windows-static.exe this morning. I am using command line CONVERT to apply text to an image, trim it, and save it as a new PNG file. Every time this process runs, an error is added to my system log that includes this: Code: unable to open file `type-ghostscript.xml': No such file or directory. I asked him if he ever got the problem solved, and he replied that he didn't and had to abandon imagemagick because of it. > It means you have an incomplete installation of IM. > > This file contains the list of fonts provided by ghostscript. > Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> > From: "Marcel Wouterse" <[EMAIL PROTECTED]> > I already got a mail from Stenz. > He said i was probably missing the file or the path was wrong. > > I checked it, but it seems all fine: > convert -debug configure label:Marcel label.gif I tried the same thing with -debug configure; my configuration came out slightly different from Marcel's, but like Marcel, everything seemed fine. I should also mention that doing the convert results in a correct image, using the correct font, despite the error message... ... > It says the .xml should be in path: > C:\Program Files\ImageMagick-6.2.6-Q16\config\type.xml You mean C:\Program Files\ImageMagick-6.2.6-Q16\config\type-ghostscript.xml, right? > And that file is also in that folder... Same here. My path also searches C:\Program Files\ImageMagick-6.2.6-Q16\www\source, and there is a type-ghostscript.xml file there, too. The two type-ghostscript.xml files are slightly different. Using cygwin diff on the two files, I get repeated differences to this effect: 29,30c29,30 < metrics="/usr/share/fonts/default/Type1/a010013l.afm" < glyphs="/usr/share/fonts/default/Type1/a010013l.pfb" --- > metrics="@[EMAIL PROTECTED]" > glyphs="@[EMAIL PROTECTED]" My cygwin configuration has no fonts directory in /usr/share. I do not have a ghostscript_font_path environment variable. I have no idea how to check whether I have ghostscript installed at all. I probably don't, see below... Convert -list type results in: Path: C:\Program Files\ImageMagick-6.2.6-Q16\config\type-ghostscript.xml Name Family Style Stretch Weight -------------------------------------------------------------------------- AvantGarde-Book AvantGarde Normal Normal 400 ... Path: Windows Fonts Name Family Style Stretch Weight -------------------------------------------------------------------------- Arial Arial Normal Normal 400 ... The names under ...\config\type-ghostscript.xml accurately reflect what is in that file, and the names under Windows Fonts accurately reflect the truetype and opentype fonts in WINDOWS\Fonts. It omits the PostScript fonts. I presume that means I do not have ghostscript installed. However, oddly enough, config -list type does NOT produce the "unable to open file `type-ghostscript.xml'" message. I should also mention that copying either type-ghostscript.xml file from www\source or config to the current directory makes the error message stop appearing. Since I'm fairly prolific, I need to work with many directories, so copying this file around is unproductive. There. Does that give somebody enough information to gain some insight into the problem? Thanks for all the attention! _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
