[thelist] listing width and height of all pix in a directory

Mark Howells mark at mark.ac
Mon Dec 15 02:03:45 CST 2003

> Is there a reasonably simple way to automatically output the width and
> height of all the jpg or gif files in a directory to a text file?

Quickest way using PHP would be to get a list of files on the server, 
then loop through them using GetImageSize 
(http://www.php.net/getimagesize) and write the file.

Mark Howells

More information about the thelist mailing list