Php > Graphics
Extended EPS Information
Extended EPS Information
EPSInfo
Name
Width
Height
Resolution
Mode
0) { $imgres=(72/$imgdata2[3])*$imgdata[1];} // calculate image resolution in dpi if ((290 < $imgres) and ($imgres < 310)) {$imgres=300;} // make it look like 300 dpi if ($imgcolour[1]=="Cyan") { $imgcolor = "CMYK"; // make Color look like CMYK } else { $imgcolor = "no CMYK information found"; } if ($imgwidth[1]=='') { $bgcolor='#FFAAAA'; } else { $bgcolor='#AAFFAA'; } print "
".$img."
\n"; // print tablerow print "
".$imgwidth." px
\n"; print "
".$imgheight." px
\n"; print "
".round($imgres)." dpi
\n"; print "
".$imgcolor."
\n"; } chdir($img_path); // first move to image path $fh = opendir("."); // open filehandle while (($filen = readdir($fh)) !== false) // read all files in folder { if (($filen != ".") && ($filen != "..")) { read_eps($filen); } } closedir($fh); ?>