Jump to content

Get the image dimentions on uplaod


Alfa9

Recommended Posts

getimagesize()

list($width,$height,$type) = getimagesize('image.jpg');

echo 'Image of type: ' . $type . ' has a width of: ' . $width . ' and a height of: ' . $height;

 

If you want to resize the image, do a google search for 'php simple image'.  White-hat-webdesign has a great little class that is easy to implement.

 

Ah, webstyles beat me.

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.