Crisp edges/pixelated images

Scales images with an algorithm that preserves edges and contrast, without smoothing colors or introducing blur. This is intended for images such as pixel art. Official values that accomplish this for the image-rendering property are crisp-edges and pixelated.

Spec https://drafts.csswg.org/css-images-3/#valdef-image-rendering-crisp-edges
Status Unofficial / Note
IE Edge Firefox Chrome Safari Opera
      98 (4)    
    95 97 (4)    
    94 96 (4) TP  
11 (2,5,*) 95 (4) 93 95 (4) 15 80 (4)
10 (2,5,*) 94 (4) 92 (3) 94 (4) 14.1 79 (4)
9 (2,5,*) 93 (4) 91 (3) 93 (4) 14 78 (4)
8 (2,5,*) 92 (4) 90 (3) 92 (4) 13.1 77 (4)
Show all
7 (2,5,*) 91 (4) 89 (3) 91 (4) 13 76 (4)
6 90 (4) 88 (3) 90 (4) 12.1 75 (4)
5.5 89 (4) 87 (3) 89 (4) 12 74 (4)
  88 (4) 86 (3) 88 (4) 11.1 73 (4)
  87 (4) 85 (3) 87 (4) 11 72 (4)
  86 (4) 84 (3) 86 (4) 10.1 71 (4)
  85 (4) 83 (3) 85 (4) 10 70 (4)
  84 (4) 82 (3) 84 (4) 9.1 (3,6,*) 69 (4)
  83 (4) 81 (3) 83 (4) 9 (3,6,*) 68 (4)
  81 (4) 80 (3) 81 (4) 8 (3,6,*) 67 (4)
  80 (4) 79 (3) 80 (4) 7.1 (3,6,*) 66 (4)
  79 (4) 78 (3) 79 (4) 7 (3,6,*) 65 (4)
  18 77 (3) 78 (4) 6.1 (3,6,*) 64 (4)
  17 76 (3) 77 (4) 6 (1,*) 63 (4)
  16 75 (3) 76 (4) 5.1 62 (4)
  15 74 (3) 75 (4) 5 60 (4)
  14 73 (3) 74 (4) 4 58 (4)
  13 72 (3) 73 (4) 3.2 57 (4)
  12 71 (3) 72 (4) 3.1 56 (4)
    70 (3) 71 (4)   55 (4)
    69 (3) 70 (4)   54 (4)
    68 (3) 69 (4)   53 (4)
    67 (3) 68 (4)   52 (4)
    66 (3) 67 (4)   51 (4)
    65 (3) 66 (4)   50 (4)
    64 (3,*) 65 (4)   49 (4)
    63 (3,*) 64 (4)   48 (4)
    62 (3,*) 63 (4)   47 (4)
    61 (3,*) 62 (4)   46 (4)
    60 (3,*) 61 (4)   45 (4)
    59 (3,*) 60 (4)   44 (4)
    58 (3,*) 59 (4)   43 (4)
    57 (3,*) 58 (4)   42 (4)
    56 (3,*) 57 (4)   41 (4)
    55 (3,*) 56 (4)   40 (4)
    54 (3,*) 55 (4)   39 (4)
    53 (3,*) 54 (4)   38 (4)
    52 (3,*) 53 (4)   37 (4)
    51 (3,*) 52 (4)   36 (4)
    50 (3,*) 51 (4)   35 (4)
    49 (3,*) 50 (4)   34 (4)
    48 (3,*) 49 (4)   33 (4)
    47 (3,*) 48 (4)   32 (4)
    46 (3,*) 47 (4)   31 (4)
    45 (3,*) 46 (4)   30 (4)
    44 (3,*) 45 (4)   29 (4)
    43 (3,*) 44 (4)   28 (4)
    42 (3,*) 43 (4)   27
    41 (3,*) 42 (4)   26
    40 (3,*) 41 (4)   25
    39 (3,*) 40   24
    38 (3,*) 39   23
    37 (3,*) 38   22
    36 (3,*) 37   21
    35 (3,*) 36   20
    34 (3,*) 35   19
    33 (3,*) 34   18
    32 (3,*) 33   17
    31 (3,*) 32   16
    30 (3,*) 31   15
    29 (3,*) 30   12.1 (3,*)
    28 (3,*) 29   12 (3,*)
    27 (3,*) 28   11.6 (3,*)
    26 (3,*) 27   11.5
    25 (3,*) 26   11.1
    24 (3,*) 25   11
    23 (3,*) 24   10.6
    22 (3,*) 23   10.5
    21 (3,*) 22   10.0-10.1
    20 (3,*) 21   9.5-9.6
    19 (3,*) 20   9
    18 (3,*) 19    
    17 (3,*) 18    
    16 (3,*) 17    
    15 (3,*) 16    
    14 (3,*) 15    
    13 (3,*) 14    
    12 (3,*) 13    
    11 (3,*) 12    
    10 (3,*) 11    
    9 (3,*) 10    
    8 (3,*) 9    
    7 (3,*) 8    
    6 (3,*) 7    
    5 (3,*) 6    
    4 (3,*) 5    
    3.6 (3,*) 4    
    3.5      
    3      
    2      
Safari on iOS Opera Mini Android Browser Blackberry Browser Opera Mobile Android Chrome Android Firefox IE Mobile Android UC Browser Samsung Internet QQ Browser Baidu Browser KaiOS Browser
15 all 94 (4) 10 (1,6,*) 64 (4) 94 (4) 92 (3,*) 11 (2,5,*) 12.12 15.0 (4) 10.4 (4) 7.12 (4) 2.5 (6)
14.5-14.8   4.4.3-4.4.4 7 12.1 (3,*)     10 (2,5,*)   14.0 (4)      
14.0-14.4   4.4   12 (3,*)         13.0 (4)      
13.4-13.7   4.2-4.3   11.5         12.0 (4)      
Show all
13.3   4.1   11.1         11.1-11.2 (4)      
13.2   4   11         10.1 (4)      
13.0-13.1   3   10         9.2 (4)      
12.2-12.5   2.3             8.2 (4)      
12.0-12.1   2.2             7.2-7.4 (4)      
11.3-11.4   2.1             6.2-6.4 (4)      
11.0-11.2                 5.0-5.4 (4)      
10.3                 4 (4)      
10.0-10.2                        
9.3 (3,6,*)                        
9.0-9.2 (3,6,*)                        
8.1-8.4 (3,6,*)                        
8 (3,6,*)                        
7.0-7.1 (3,6,*)                        
6.0-6.1 (1,6,*)                        
5.0-5.1 (1,6,*)                        
4.2-4.3                        
4.0-4.1                        
3.2                        

Notes

Note that prefixes apply to the value (e.g. -moz-crisp-edges), not the image-rendering property.

  1. Supported using the non-standard value -webkit-optimize-contrast

  2. Internet Explorer accomplishes support using the non-standard declaration -ms-interpolation-mode: nearest-neighbor

  3. Supports the crisp-edges value, but not pixelated.

  4. Supports the pixelated value, but not crisp-edges.

  5. Only works on <img>, not CSS backgrounds or <canvas>.

  6. Only works on <img> and CSS backgrounds, _not_ <canvas>.

* Partial support with prefix.

Bugs

  • image-rendering:-webkit-optimize-contrast; and -ms-interpolation-mode:nearest-neighbor do not affect CSS images.

  • Safari has a bug where image-rendering: pixelated is not supported for WebGL contexts.

Resources

Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/css-crisp-edges