Link to home
Start Free TrialLog in
Avatar of MitchellVII
MitchellVIIFlag for United States of America

asked on

Why are my images so blurry in IE10?

** This demonstration of the problem may not work if you are viewing this in IE10 as that is where the problem lies.

I am finishing up my website design and I notice that any smaller images (such as my corporate headshot), are VERY blurry in IE10 while they are crystal clear in Firefox.  Weird.

What gives?

Is there something I can set in the code to fix this?

Here are screenshots of both images for comparison:

IE10:  User generated image
Firefox:  User generated image
These are both based upon the same image file.  As you can see, the quality of the IE10 image is completely unacceptable.  I tried .png and .bmp, same problem.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

We would have to see the html and css being used. If you are allowing the browser to size the images, you will always get poor rendering in some or all browsers.  Plus the browsers do not necessarily interpret the code the same.  Using .bmp on a webpage is never a good idea.  The best for optimum quality cross-browser .jpg

In general IE rendering has always been inferior to other browsers.

Cd&
Avatar of MitchellVII

ASKER

Ok, have done a bit more research and have stumbled across a weird solution.

If I put the image into the HTML using the correct dimensions, like so:

<img alt="" src="images/web_mitchellbill_team_med2.jpg" style="float:left;height:122px;width:86px;margin-left:0px;margin-top:1px;margin-right:5px;margin-bottom:0px">

then Firefox renders properly and IE 10 renders blurry.

However, if I increase the image height and width by just one pixel like so:

<img alt="" src="images/web_mitchellbill_team_med2.jpg" style="float:left;height:123px;width:87px;margin-left:0px;margin-top:1px;margin-right:5px;margin-bottom:0px">

the IE 10 renders properly and Firefox renders blurry.

Weird.

If I leave any dimensions out completely, Firefox is clear and IE 10 is blurry.
Avatar of Gary
Is that a real screenshot with the light gray border?
The images are not the same size. The FF image is larger with a smaller border. But overall is still smaller.
What doctype are you using?
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks,

Figured it out.  I am running this on a Surface Pro with an external monitor at 125% zoom.  It is the weird zoom factor that was making images in IE look strange.  When I went to 100% zoom everything was fine.

Strange.

Will give you credit for the answer as what you have suggested would work.
Oh yet another bug in IE10?  The zoom is supposed to rescale without distortion according to the spec.  However no expects IE to be to spec...

Cd&