I use getimagesize() to get the width and height of the image, then resize it so it display properly.
The code was working fine for two years in my website. All of a sudden, in IE, the image is only 1x1, so no one can see the picture. However, I was told, the picture displays properly in...