Robert Sossomon wrote:
> Chris is quoted as saying on 11/30/2004 2:53 PM:
>> imagesx()  requires an image resource , not a file path.  so you'd need
>> to use one of the imagecreatefrom* functions to create the resource.
>>
>> But it looks like all you want is the width and height of an image....
>> If so use get imagesize() ( which *does* except a pathname, not a
>> resource)
>>
>> Chris
>>
>> http://www.php.net/image
>> http://www.php.net/getimagesize
> <SNIP>
> I had looked at get image size, but thought the other would be quicker...
> ARGH.

imagesx() is probably quicker once you have loaded in the entire image to
your GD resource...

But assuming the image could be *HUGE* and that getimagesize only has to
read the first N bytes to determine the size of the image, getimagesize
will win any speed race for an otherwise un-opened image file, I should
think.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to