Yes but the spec doesn't say how it should be rendered. If you're gonna 
change the size of an image to something smaller, you're obviously gonna 
lose some sharpness/detail/etc., just like making it bigger won't result 
in a more detailed picture, you'll just end up with a pixelly mess.

For testing purposes, I saved the header.gif image and made my own 
little testcase, a simple body and an img tag, with the height and width 
you specified. I then checked the resulting page in Photoshop, measuring 
the header.gif's size. Mozilla *is* resizing it to the specified height 
and width, so I don't see a bug...

Offtopic question: why resize it in the first place? Why not just crop 
it to the size you want. Results in faster rendering of the page, as any 
browser that encounters the page won't have to resize it first.


Jon Hall wrote:

> The whole purpose of the height and width parameters is so that the 
> display size of an image can be changed.
>  From the HTML 4.0 Spec:
> "When specified, the width and height attributes tell user agents to 
> override the natural image or object size in favor of these values."
> 
> If the browser is doing this incorrectly as Mozilla is, it seems to me 
> it's obviously a bug.
> 
> jon
> 
> You wrote:
> 
>> Seems like you didn't set the correct height & width. In the source 
>> code, it's set to 104px high and 779px wide:
>>
>> <img src="images/header.gif" width="779" height="104" alt="" border="0">
>>
>> Looking at the header.gif image in Photoshop, however, i can see that 
>> the image is actually 778px wide and 103px high. Change that to the 
>> proper height and width, and it should work.
>>
>> I don't think this is a bug, but I am seeing the artifacts described 
>> by Jon in the latest nightly i've got, 2001070604.
>>
>>
>>
>> Jon Hall wrote:
>>
>>> I am seeing some weird image artifacts in Mozilla. Look at this
>>> http://www.nexcraft.com/springair.cfm
>>>
>>> In Mozilla .91 and .92 on my work and home computer, I see a vertical 
>>> black line in the header image a little up and to the left of the 
>>> words "Contact Us".
>>>
>>> If the image's width and height is not set to something other than 
>>> the actual image's size in the <img> tag, the image displays fine. It 
>>> get really bad if I only set one of the sizes like the height.
>>>
>>> Is there a bug filed on this? It seems like a major issue to me.
>>>
>>> jon
>>>
>>
> 


Reply via email to