Page 1 of 1

Reading image properties of EPS fails or is very slow

Posted: 2008-09-24T09:13:28-07:00
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?

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

Posted: 2008-09-24T12:29:13-07:00
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.