Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Hi all,
I am having some problems with certain .EPS files. most of the files work great but some files seem to be missing data. If run the identify in the command prompt i get the following message:
The things i found out so far is that the eps files that work start with a sertain hex code C5 D0 D3 C6 while the ones that don't work do not start with thes values.
I got lost as to which type of file is which while reading this:
The EPS file type is primarily associated with 'Encapsulated PostScript'. There are two distinct types of .EPs files, one of which is a vector based graphics file and can be opened and easily edited for type, color, etc. in Adobe Illustrator or PC vector based programs like Corel Draw. They can be CMYK color, or flat pantone color based. These files could be "placed' or "imported" into Pagemaker (or Word, Quark, etc.), but not opened by it. They can be almost infinitely scaled in size without degrading the output because they are vector based. The other is an .EPS photo file, flattened, set resolution "picture" type file. It can be opened in PhotoShop or other image editing programs, also placed or imported into Pagemaker (or Word, Quark, etc.), but it will be significantly degraded if scaled beyond the set resolution. These are usually CMYK files, or can be set as Pantone duo-tone, tri-tone files. The initial characters for the EPS format (C5 D0 D3 C6) only works for DOS EPS files. A better magic value (initial characters) may be "%!PS" (25 21 50 53). %!PS does not always appear at the start of the file (though for Unix's ps2epsi it does), but should appear near the start of the file. It should have a version after it, e.g., "%!PS-Adobe-3.0 EPSF-3.0".
I think, you should get the correct (BoundingBox) value with your command. I'm getting:
identify -format "%w %h" Pierre.eps
582 582
This is with ImageMagick v6.6.3-0 Q16 and GS v8.71, on Windows XP. What versions are you using?
On Windows, I believe, 'identify' only needs the "gsdll32.dll" from GS. Don't know about Unix...
For IM i have v6.6.3-0 Q16, Windows 7 on my laptop and do not have GhostScript... On the unix servers it does not load any EPS and there is a GS installed with the same imagemagick..
Will have a shot with installing GS to see how things go. will keep you posted and tnx for the help so far .
Ghostscript can't be found.
ImageMagick first tries to access the registry, but perhaps that is restricted in your Windows. Try to add the Ghostscript 'bin' directory to your path. You should be able to execute 'gswin32c -ver' from the commandline. Then ImageMagick should work, too.