March 18th, 2000, 06:11 PM
Does anybody know how to open an image (gif/jpg) end echo its size?
I know the syntax for gifs, but it do not work on jpegs.
March 18th, 2000, 08:24 PM
March 19th, 2000, 03:51 AM
IT WORKS!!! Thank you VERY much!!! :-)
I was using this syntax:
// notice these are backticks (`), not quotes (')
// the file function is called and fed the location of the gif file
$output = `file /full/path/to/gif`;
// the $output string contains lots of info, so we split it up by the ,'s.
$vals = split( ",",$output);
// we display a trimmed version of the third part, as taht contains the dimensions.
// the  part is because array indexes start at 0, not 1