Why is my css not working with image smoothing

Viewed 32

I've bean trying to make a background, but the image smoothing is not working:

img {
  image-rendering: pixelated;
}

canvas {
  image-rendering: pixelated;
}

body {
  padding: 0px;
  margin: 0px;
  border-width: 0px;
}

html {
  padding: 0px;
  margin: 0px;
  border-width: 0px;
  image-rendering: pixelated;
}

#webpage-background {
  width: 100%;
  height: 100%;
  position: fixed;
  image-rendering: pixelated;
}
<body>
  <img src="res/images/POTATO_BACKGROUND.png" id="webpage-background" style="image-rendering: pixelated;">
  <canvas>
    </body>

and it always results in this:

this is a section of the image

0 Answers
Related