SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2001
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Width and height of uploaded image

    I am storing images in a database because the server's file permissions are such that I cannot copy the images to the server. I want to determine the width and height of the uploaded image.

    Is there any way to determine the dimensions (width and height) of an uploaded image without copying it to the server?

  2. #2
    Non-Member Icheb's Avatar
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    1,474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Erm, if it's uploaded, it's already on the server?

    Anyways:

    getimagesize -- Get the size of an image

    http://de3.php.net/manual/en/function.getimagesize.php

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2001
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's on the server in a temp directory. I can't copy it to a directory where I could then use getimagesize(). I'm not sure (I haven't figured out how if it's possible) to use getimagesize() on the temp file.


Bookmarks

Posting Permissions

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