开发者

Image resize issue in Mozilla Firefox for windows

I am having some weird issues. I have a large image which is being shrunk to size 30px in the img link so:

img src="/company/images/logos/1.png" height="30px"

On all browsers and computers it looks fine except for firefox on a windows. I found out that when i r开发者_Go百科id the height constraint it looks fine but when i add the "30px" it looks messed up.

Any ideas on what i might need to do?


I'm guessing you're talking about issue where the default Firefox image resizing algorithm makes the image look "jagged".

In general, it's better to not let the browser resize the image.

You should instead make a version of the image that is already the correct size.

I'm not aware of a way to make the image look good when downscaling in Firefox.

See here for a comparison. (I used Firefox 3.6.15 / Windows 7)

If anybody has a way to make the first image downscale smoothly in Firefox, I'd like to know.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜