paint-brush
Pixelated Images Using Pythonby@h3avren
5,692 reads
5,692 reads

Pixelated Images Using Python

by Ajay Singh Rana3mJanuary 18th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Use PIL the following way to create a pixelated Image: from PIL import Image image = Image.open(image_name) image_small = image.resize((width,height)) pixelated = image_small.resize(image.size,Image.NEAREST) pixelated.save(save_as)

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Pixelated Images Using Python
Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana

Ajay Singh Rana

@h3avren

Dreaming with Python... Under a sky in India...

About @h3avren
LEARN MORE ABOUT @H3AVREN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana@h3avren
Dreaming with Python... Under a sky in India...

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite