Jon Hall wrote:
> I discovered the bug by sheer chance...I dont plan on resizing the image
> in the site.
>
> But as to the issue, sometimes image resizing in the html is very handy.
> Look at it the other way, are we no longer going to be able to use the
> height and width without making the image render badly? Might as well
> get rid of them then...Is Mozilla trying to make the artists more money?
> I dont want to go back to the artist every time I want to shave a few
> pixels! :)
>
> That doesn't really make sense...that's why I call it a bug.
>
> jon
>
Hmmm... using a post-0.9.2 nightly build here, and I get those
unsightly horizontal and vertical lines in the resized image.
Then I noted the following:
- The image contains a dither pattern. Resizing an image with a dither
pattern in it is not going to look good, no matter what you do. This
is really more related to sampling theory and the Nyquist theorem
than to shoddy browser code as such - you will get either those lines
or moire-like patterns, depending on the filter used for resizing.
- The problem is not specific to Mozilla. IE 5.0, on my computer at
least, renders the resized image in EXACTLY the same way as mozilla
does, with the same lines in the exact same locations. Other browsers
may possibly render the added pixels along the image edges or
something like that - which would work nicely for this particular
case, but break others - or perhaps just passing along the resizing
to the graphics card driver. (Which could potentially hide
this particular artifact on YOUR computer, but fail to do so
for just about everyone else that views the page. Great fun. )
jørn