Skip to content

Instantly share code, notes, and snippets.

@RyoSugimoto
Created April 26, 2017 05:39
Show Gist options
  • Save RyoSugimoto/bd456ac4777037e94c061f00a25c2963 to your computer and use it in GitHub Desktop.
Save RyoSugimoto/bd456ac4777037e94c061f00a25c2963 to your computer and use it in GitHub Desktop.
画像のレンダリング方法を調整する。
/* GIFとPNGのみに適用する場合 */
img[src$=".gif"], img[src$=".png"] {
image-rendering: crisp-edges;
image-rendering: -webkit-optimize-contrast;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment