High Resolution Image IE Browser Rendering
Asked Answered
H

2

6

I am optimizing my site for these higher resolution monitors (especially the new iPad). I have the site formatted the way I want, and I was just increasing the resolution of each image but still constraining it to the DIVs that I currently have. For example, I have an image with a resolution of 483x246 and I have it fitting a DIV with a set size of 188x96.

The images look great on Chrome, Firefox, and most importantly on the new iPad. Even zoomed in it's nice and crisp (as opposed to my old 188x96 image that looked blurry and pixelated when zoomed in)

The problem comes in when I open the page in IE. It displays the image at the correct size but it's jagged. See link to comparison below. I know it's an issue with the way IE resizes and renders pictures on the fly.

My question would be, is there a way to make IE display the picture nicely? If not, is there a way I can put in the code so that if it detects IE, it displays my old low res image? I've looked everywhere but haven't found anything that relates to my specific problem. I know this is a small example but my bigger images do the same thing and are more noticeable. I hope you all can help. Thanks. :)

Comparison: enter image description here

Heteroplasty answered 11/4, 2012 at 15:0 Comment(0)
C
3

Have you tried putting this in your CSS?

img { -ms-interpolation-mode: bicubic; }

There's also this https://github.com/adamdbradley/foresight.js which looks very interesting

Make sure IE9 isn't in compatibility mode or IE7/8 mode... IE9 Mode

Copalite answered 11/4, 2012 at 15:8 Comment(2)
Thanks! That worked but for earlier versions of IE. IE 9 still shows jagged images. :( Oh well. I'll have to check out that script. That actually does look interesting. Thanks again.Heteroplasty
Would you mind sending me a link of the example? I'm sure we can fix this... also have you checked your IE9 isn't on IE7 or IE8 mode? hit F12 then click where it says Browser Mode: IE...Copalite
V
0

The reason this happends if because the bitmapdata is actually rendered completely different in the IE browser, the thing IE does is it "cuts" away pixels over a set ratio so like every 5 pixels it yanks a pixel and therefor makes it look like it misses certain gradient properties.

not much you can do about this except for keeping the aspect ratio set but I guess you would've known that by yourself already

Vise answered 11/4, 2012 at 15:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.