Page 1 of 1

Posted: 2006-08-29T11:37:36-07:00
by spieler
If you want to read the image from standard in, you need to use a hyphen. You should be able to do something along the lines of

identify -format "%x %y" gif:- $stringContentOfImage

You may be able to specify just the "-" without the whole "gif:-", but I don't know that for sure.

You can find more info about "standard in" at
http://www.imagemagick.org/script/comma ... .php#input

Posted: 2006-08-30T08:27:22-07:00
by spieler
On second thought, standard in works more like

Code: Select all

  $cmd = 'echo ' . $img . ' | /usr/local/bin/identify -format "%x,%y" -';
I just tried
cat a.gif | identify -format "%x,%y" -
and it worked great.