CSS Filter on Retina Display: Fuzzy Images

▼魔方 西西 提交于 2019-12-03 02:08:46

I managed to get around this issue by applying to the img tag:

-webkit-transform: translateZ(0); 

http://jsfiddle.net/78qbn/3/

Child elements with -webkit-backface-visibility: hidden; will resolve this.

http://codepen.io/amboy00/pen/Bxbrd

Joined stackoverflow to let others know since I had to find this out myself: this bug also manifests (but differently) when trying to print images in chrome. They turn super pixelated!

If you throw a -webkit-filter onto a PNG in chrome regardless of printer or print settings, it prints the image/s at the right size, but downsampled to under 70 dpi. It's visible in the print preview too.

-webkit-transform: translateZ(0); fixed it.

Meatspace repro: prints of same stack of PNGs with & without fix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!