> I see that there are many JPEG utilites/viewers for both SVGAlib and X. > However, what I need is a command line program that will return the > dimensions, # of colors, etc. for an image. Is there such a beast? I > know it's readily available if you understand the file format but I > don't yet and was hoping to avoid writing any C.
(cat filename.jpg|djpeg -v -targa>/dev/null) 2>&1|sed -n -e 's/Start Of Frame.*://p' works for me, though probably there are more straigt forward ways! -- joost witteveen, [EMAIL PROTECTED] #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .