FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Getting height and width from an image

 


Roald
I have some images that are uploaded, is it possible to check there width and height with PHP?
desertwind
you can use getimagesize($filename) method.

It will return an array with 5 elements. Index 0 and 1 contains respectively the width and the height of the image.
Roald
Thanks that was were I was looking for.
infobankr
For what its worth (FWIW), check out gd - it is a php library with many many image options.

As a separate alternative, you could also use javascript to get the width and height.
Roald
I know gd but it's not usefull for what I want to do.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.