Hi,
I've writen a small php code for displaying an image according to certain
width and height.
Until the last week, everything went fine. Suddenly the images are being cut
in the middle.
*This happens ONLY in IE.*
You can take a look here
http://www.todos.co.il/images/thumb.php?id=1224621citydetails&width=420&height=560
The first time the image will show fine. after a REFRESH it will be cut, and
if you'd wait a while before refreshing again, the next refresh will show the
image fine.
As I understand, when the image output is too big, the image is being cut.
For example. if you look here:
http://www.todos.co.il/images/thumb.php?id=1224621citydetails&width=42&height=56
The output is smaller, hance the file is always ok.
I believe I need to send an extra header with the image, but I don't know
which.
Answers will be greatly appriciated.
rob^_^ - 19 Jun 2008 21:44 GMT
Hi Nir,
Works fine for me. Even when altering the image settings on the Multi-media
section on the Advanced tab of internet options.
However, your server code is retaining the aspect ratio of the image. Rather
than honoring the height and width parameters, instead maintaining the
aspect ratio with the smaller dimension.
The fiddler tool (http://www.fiddlertool.com ) may give you some insight as
to what is happening with the response headers or the cache.
Regards.
> Hi,
> I've writen a small php code for displaying an image according to certain
[quoted text clipped - 22 lines]
>
> Answers will be greatly appriciated.