Uploaded image's dimensions

images php coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
pio
New php-forum User
New php-forum User
Posts: 12
Joined: Sat Nov 29, 2003 9:58 am
Location: Oslo, Norway
Contact:

Uploaded image's dimensions

Postby pio » Wed Mar 10, 2004 10:52 am

just a quick question:

when uploading an image using POST, are there attributes for the image's width and heigth in $_FILES ? (f.ex. $_FILES['image']['width'])

Didn't find anything in the documentation..

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Re: Uploaded image's dimensions

Postby swirlee » Wed Mar 10, 2004 11:09 am

pio wrote:when uploading an image using POST, are there attributes for the image's width and heigth in $_FILES ? (f.ex. $_FILES['image']['width'])


File upload is designed for files of all types, not just images, so there's nothing in there specific to images. To get image dimensions, you'll have to use the GD library or similar.


Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 1 guest