---Reply to mail from Greg M about Can't determine image size from output of
ImageMagick 'identify' program
>
> What am I doing wrong here? The identify program exists in the same location
> as the convert.exe program. Convert.exe seems to work. I tried
> re-downloading Image Magick (the precompiled binaries for Win2k -
> ImageMagick-win2k.zip), but I am still having the same problem. I looked in
> the plucker.ini for any settings for identify, but didn't find any.
>
> If there's any more info I could give to help answer this question, I'd be
> glad to give it.
Greg:
Unfortunatly, different versions of identify output their data in
different formats. Can you post the output from:
identify -ping 'some graphics file'
The code that searches the output for the image size may be wrong for
the version if identify you have.
If you are brave you can try changing two lines in Imageparser.py at
about line 200 as follows:
change: command = "identify -ping " + tmpfile
to: command = "identify -ping -format \"%wx%h\" " + tmpfile
if self._verbose > 1:
print "Running: ", command
pipe = os.popen(command)
info = pipe.read()
pipe.close()
change: match = re.search(r"\s(\d+)x(\d+)\D", info) (your line may differ)
to: match = re.search(r"(\d+)x(\d+)", info)
This will cause identify to only output widthXheight and python to
search for it. You will then need to reinstall the python scripts. On unix
platforr\ms this is 'make install' in the directory ImageParser.py lives
in. I don't know how it is done on windows. (Should be similar.)
---End reply
Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
.. I used to get in more fights with SCO than I did my girlfriend, but
now, thanks to Linux, she has more than happily accepted her place back at
number one antagonist in my life..
-- Jason Stiefel, [EMAIL PROTECTED]