Getting a Remote Image Size

software development

#1

I am trying to get the width and height of a remote image in a php script but since getimagesize() is disabled, how would I go about getting that information?

IE: What’s a viable alternative method of getting the height and width of an image from a remote source to verify that it fits certain criteria, ie, max width 120px, max height 120px

Thanks!


#2

Fetch the image file and save it to disk, then call image size.

See http://wiki.dreamhost.com/index.php/CURL

:cool: Perl / MySQL / HTML+CSS