Jump to content

File upload: Getting width and height


Michan

Recommended Posts

Hi,

 

I have a file upload script, and want to ensure the image a user uploads is of a certain width and height (let's say 100x100). Is there an easy way to check this, sort of like $_FILES['file']['size'] ?

 

If not, then what's the best way to discover the width and height?

 

Thanks in advance!

- Mi

Link to comment
https://forums.phpfreaks.com/topic/91218-file-upload-getting-width-and-height/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.