dreammaker888
Programmer
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 Firefox.
What changed and how can I rectify the problem so the picture will display properly.
Here's the code:
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 Firefox.
What changed and how can I rectify the problem so the picture will display properly.
Here's the code:
Code:
$ImageSize = getimagesize($tURL);
$pW= $ImageSize[0];
$pH= $ImageSize[1];
if ($pW >= 100)
{
$pH = 100/$pW * $pH;
$pW = 100;
}
if ($pH >= 100)
{
$pW = 100/$pH * $pW;
$pH = 100;
}