I have some images that are uploaded, is it possible to check there width and height with PHP?
Getting height and width from an image
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.
It will return an array with 5 elements. Index 0 and 1 contains respectively the width and the height of the image.
Thanks that was were I was looking for.
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.
As a separate alternative, you could also use javascript to get the width and height.
I know gd but it's not usefull for what I want to do.
