0

I am creating a web app for Minecraft, and I need to grab someones skin, and resize it without the blurriness. Maybe some javascript or something can help with this problem.

StayUber
  • 13
  • 2

1 Answers1

3

If I'm understanding your question correctly, I believe you want to resize images without interpolation and using nearest-neighbor only, e.g.:

crisp Mario

rather than:

blurry Mario

Unfortunately, there's no simple way to do this with CSS so you'll have to either:

  1. Scale the images with nearest-neighbor on the server-side and serve them, or,
  2. Check out this question for a convoluted answer involving HTML5 canvas.
Community
  • 1
  • 1