How to get Picture Sizes?

Any problem with PHP can be disscused here
Posts: 353
Joined: Tue Feb 28, 2006 12:34 am

Post by Flipper3 »

OMG! Thanks SO much! :D

My only problem is that the filesize() doesn't work for me, but I can live without that.

But I also figured out that there are two functions for getting the image width and height:

imagesx() <-----Finds the width
imagesy() <-----Finds the height

I get this error when using the filesize() function....EXACTLY as you told me to:
Warning: filesize() [function.filesize]: stat failed for in /home/********/public_html/*****/*****/******/******.php on line 3
(I just starred out my directories, etc. ;) )

Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

if you are trying to get external's picture stat, your server must by configured properly to open external resources (I have mentioned it before!!) try to get file size for local image and see if it works ;)
Posts: 10
Joined: Fri May 13, 2011 5:00 pm

Post by griminif »

i dont know :s

by the way

0 posts to go :DDDDD
Posts: 11
Joined: Wed Dec 07, 2011 1:36 pm

Post by dhaneshmane »

try getImageSize() i think u ned to give path to it.
Post Reply