--- title: image-rendering slug: Web/CSS/image-rendering tags: - CSS - CSS Images - CSS Property - Reference translation_of: Web/CSS/image-rendering ---
image-rendering CSS 프로퍼티는 브라우저의 이미지 스케일링 방식에 대한 힌트를 제공합니다. 이 프로퍼티는 엘리먼트 자신에게 적용시킵니다. 스케일링(크기변경)이 안 된 이미지에게는 적용되지 않습니다.
예를들어, 100x100 픽셀의 이미지가 있는데 페이지에서 요구하는 이미지는 200x200픽셀 (혹은 50x50px)이라면, 이미지는 새로운 면적만큼의 특정 알고리즘으로 인해 확대(혹은 축소)됩니다. 스케일링은 사용자의 상호작용(줌기능) 으로 인해 일어날겁니다.
{{cssinfo}}
/* 키워드 값 */ image-rendering: auto; image-rendering: crisp-edges; image-rendering: pixelated; /* 전역 값 */ image-rendering: inherit; image-rendering: initial; image-rendering: unset;
autocrisp-edgespixelatedoptimizeQuality and optimizeSpeed present in early draft (and coming from its SVG counterpart) are defined as synonyms for the auto value./* applies to GIF and PNG images; avoids blurry edges */
img[src$=".gif"], img[src$=".png"] {
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}
div {
background: url(chessboard.gif) no-repeat 50% 50%;
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}
{{EmbedLiveSample('예제')}}
78%
100%
138%
downsized
upsized 
78%
100%
138%
downsized
upsized 
78%
100%
138%
downsized
upsized 
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('CSS3 Images', '#the-image-rendering', 'image-rendering')}} | {{Spec2('CSS3 Images')}} | Initial definition |
Note: Though initially close from the SVG image-rendering property, the values are quite different now.
{{Compat("css.properties.image-rendering")}}