dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: getimagesize()?

  1. #1
    Join Date
    Aug 2004
    Posts
    195

    getimagesize()?

    OK, lemme explain what Im trying to do...
    Firstly, I have a form which allows users to upload images (they SHOULD be images), then I have an email sent to me with a link to the uploaded images. I then have a simple page which displays the images (simple <img> tags) and asks me if I want to approve (allow the images to be posted) them. What I'm looking for is this...I want to get some details about each image listed below the <img="" /> like: length, width, image type, file size (Kb) but dont know if Im going about this the wrong way?
    How SHOULD it be done?
    Thanks...

  2. #2
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    when you upload the image, you can gather all of that data.
    you can also do all of that at the preview page. have you seen the gd image library?

    http://www.php.net/manual/en/ref.image.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles