No,no. I just want to display distant images on my site (from another
site). But, in order to not crash my look, just before display the image
I want to evaluate its size. If it is too large I put a width attribute
in the tag.
I want to do that:
$imgWidth = getWidth("www.toto.com/image.gif");
I dont believe that such a function would already exist. If saving
network bandwidth is your aim, you can open an HTTP connection yourself,
read only the first 10 bytes, and close the connection. The first six
bytes of an GIF image is always 'GIF87a' or 'GIF89a'. Then comes the
width as a 1
2 matches
Mail list logo