is there an easy way to get the size of an image?

is there an easy way to get the size of an image?

am 06.01.2008 23:30:05 von nn

is there an easy way to get the size of an image before opening it?

i'd use it to determine the size of the window that would open for
that image.



thanks,
NN

Re: is there an easy way to get the size of an image?

am 06.01.2008 23:49:36 von Shion

NN wrote:
> is there an easy way to get the size of an image before opening it?
>
> i'd use it to determine the size of the window that would open for
> that image.

You can use getimagesize()
http://www.php.net/manual/en/function.getimagesize.php

--

//Aho

Re: is there an easy way to get the size of an image?

am 07.01.2008 03:57:53 von nn

On Sun, 06 Jan 2008 23:49:36 +0100, "J.O. Aho"
wrote:

perfect! thank you very much!

NN

>NN wrote:
>> is there an easy way to get the size of an image before opening it?
>>
>> i'd use it to determine the size of the window that would open for
>> that image.
>
>You can use getimagesize()
>http://www.php.net/manual/en/function.getimagesize.php