Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Uploaded image's dimensions

images php coding issues or problems here.

Moderators: macek, egami, gesf

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
pio
New php-forum User
New php-forum User
 
Posts: 12
Joined: Sat Nov 29, 2003 9:58 am
Location: Oslo, Norway

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.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron