@@ -1757,7 +1757,7 @@ Determining How To Scale an Image: the 'image-rendering' property {#the-image-re
1757
1757
that puts it closest to the target size
1758
1758
and is greater than zero.
1759
1759
1760
- Scale it to this integer-multiple-size as for ''crisp-edges'' ,
1760
+ Scale it to this integer-multiple-size using [=nearest neighbor=] ,
1761
1761
then scale it the rest of the way to the target size as for ''smooth'' .
1762
1762
1763
1763
Note: At integer multiples of the natural size,
@@ -1773,14 +1773,14 @@ Determining How To Scale an Image: the 'image-rendering' property {#the-image-re
1773
1773
The image is scaled in a way that preserves contrast and edges,
1774
1774
and which does not smooth colors or introduce blur to the image in the process.
1775
1775
1776
- The image must be scaled with the " nearest neighbor" algorithm:
1776
+ The image must be scaled with the <dfn> nearest neighbor</dfn> algorithm:
1777
1777
treating the original image's pixel grid as a literal grid of rectangles,
1778
1778
scale those to the desired size,
1779
1779
then each pixel of the final image
1780
1780
takes its color solely from the nearest pixel of the scaled original image.
1781
1781
1782
1782
Note: If the new size is not an integer multiple of the original size,
1783
- the NN algorithm can introduce significant " aliasing" bugs;
1783
+ the NN algorithm can introduce significant “ aliasing” bugs;
1784
1784
lines that were the same thickness in the original image
1785
1785
might be a pixel thinner or thicker in the scaled image
1786
1786
depending on where they appear,
0 commit comments