Problem with getimagesize() in IE
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:
$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;
}
.
Relevant Pages
- Re: Get position of image after stretching it
... as a background picture on the Form. ... rectangle and simply adding or subtracrting the amount of Form resize but it ... One simple way of doing that is to adjust the scale of the form so that it ... Private Sub Form_Paint ... (microsoft.public.vb.general.discussion) - Re: emailing photos
... If you open a folder that contains image files... ... images and you will have an option to resize. ... the folder with your originals. ... Picture It! ... (microsoft.public.windowsxp.photos) - Re: Pictures with IRFAN - optimize for PUB
... but the script won't work on Publisher wizard-built menus. ... inserted hyperlink, and if you think it is worth the effort, then I can ... I wouldn't worry about resizing and optimizing each picture ... I see no reason to try to resize or optimize it in Irfanview. ... (microsoft.public.publisher.webdesign) - Re: Clipboard viewer?
... Almost everything with Paint is a PITA. ... But I use it all of the time to edit picture ... Click on Edit and then Paste or hit Ctrl + V to paste the image. ... You can also resize your picture by dragging the image resize handles, ... (microsoft.public.windowsxp.newusers) - Re: Im trying to upload a photo in jpg format and it wont send...
... We request the files uploaded be in the jpg format. ... from my pictures folder. ... the page shows something in red about the picture but goes real fast ... images and you will have an option to resize. ... (microsoft.public.windowsxp.photos) |
|