Skip to content

Instantly share code, notes, and snippets.

@antiface
Created July 13, 2020 10:50
Pixelate an image.
from PIL import Image
img = Image.open("NOISEFIELD_2020.png")
imgSmall = img.resize((128,128), resample=Image.BILINEAR)
result = imgSmall.resize(img.size, Image.NEAREST)
result.save("result.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment