Reading image properties of EPS fails or is very slow

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
quelle

Reading image properties of EPS fails or is very slow

Post by quelle »

Using:
ImageMagick 6.4.3 2008-09-21
Ghostscript 8.63 2008-08-01
Windows XP SP2

I am trying to extract properties (file size, width, height, dpi, colorspace) from an EPS image and am using the following command:

Code: Select all

identify -format "%w  %h  %[colorspace]  %b  %[xresolution]  %[yresolution]" image.eps
This returns the correct information, but is very slow - 4-40 seconds depending on the image!

I tried using the -ping option to speed things up, but get this error:

Code: Select all

identify -ping -format "%w  %h  %[colorspace]  %b  %[xresolution]  %[yresolution]" image.eps
identify: UnableToConcatenateString `No such file or directory'.
The "UnableToConcatenateString" only occurs for some EPS images, not all.
But ImageMagick is always slow when retrieving EPS image properties.

Does anyone know why the -ping option causes imagemagick to fail? Or how to speed up the reading of EPS image properties?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Reading image properties of EPS fails or is very slow

Post by magick »

Looks like you will need another utility other than ImageMagick. ImageMagick must first render an EPS page before it can return its attributes.
Post Reply