Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default Getting the width&height of image?

    is there any way, in php, to determine the width and height of an image that is already uploaded?

    I remember reading something on php.net but forgot the command..

    Thanks for any help
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    getimagesize

  3. #3
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    PHP Code:
    <?php
    list($width$height$type$attr) = getimagesize("image_name.gif");
    ?>
    Whatever file

  4. #4
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Ty
    +REP if i can.
    Coming and going...
    Highers are getting the better of me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •