i just started work on CMS for my wallpaper site. but i am confuse how i can get the image dimensions in pixels with php. i will realy love if some one can tell me the way.
shanee
hawksbill
7:24 pm on Aug 13, 2007 (gmt 0)
getimagesize("your filename") should return an array whose first two elements give you width and height, respectively.
distorto
7:31 pm on Aug 13, 2007 (gmt 0)
also, the third array value holds 'width="imagewidth" height="imageheight"' which can be pretty useful when displaying the images in img tags
Shanee
7:59 pm on Aug 13, 2007 (gmt 0)
thanks for the help i made the below function which work cool