AUTOMATIC1111 / stable-diffusion-webui-pixelization

stable-diffusion-webui-pixelization
MIT License
571 stars 78 forks source link

Make preview image more pixelated #5

Open nonetrix opened 1 year ago

nonetrix commented 1 year ago

As it is the preview image doesn't use nearest neighbor scaling so it looks blurry like this image When in fact the result is much better when viewed with nearest neighbor image

This can be easily done with some simple CSS

img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

reference: https://css-tricks.com/keep-pixelated-images-pixelated-as-they-scale/