Jump to content

[SOLVED] Image size function in pixels?


Foser

Recommended Posts

Of course you could also use getimagesize() in an if statement, and not have the upload continue if the size is not within your desired range.

 

doesn't getimagesize() require access to the full content of the image file, that is the image file is already load either in the server or another server?  so let's say you have a .php page that receives the file being uploaded.  in order for php to process the image file and determine its dimension, the file being uploaded must first finish being uploaded.  meaning that the file has already been uploaded before any php is executed, w/c is contrary to what you wanted of "prior upload".

 

Im looking for a function that will check the size of the picture prior upload.

 

now if what you mean is "...check the size of the picture prior to saving the picture in the server.", then getimagesize() fits the bill.

 

regards.

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.