2 I am getting really weird dimensions from the getimagesize() function, like 8000 and even 5000000 (!!) for files not larger than 100 x 100. Any idea what can be going on here ?