Jump to content

Image width and height

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
Is there anyway to get an image width and height in PHP?

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I never done that before, but when i was looking to create a dynamic signature i ran accrost this the getimagesize() function. Im not sure if its what you want but its worth looking into

http://us3.php.net/f...on.getimagesize

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Yes, that is the correct function.


$size = getimagesize("someimage.jpg");

$width = $size[0];

$height = $size[1];