Php Programming Code Examples Php > Graphics Code Examples Getting widthhight of an EPS Getting widthhight of an EPS #$imgdata[1] contains width /[2] contains height $fp=fopen ($img, "r"); $buffer = fgets($fp, 4096); if (preg_match("/ImageData:[^\"]*\"/",$buffer ,$imgdataln)) { $imgdata=split(" ", $imgdataln[0]); } fclose ($fp)