I am learning to use Pillow. I am trying to display the thumbnail but don’t know how.
Here is my current code:
img = Image.open('block.jpg')
new = img.thumbnail((400,400),Image.Resampling.LANCZOS)
I’ve tried using
img.resize((400,400),Image.Resampling.LANCZOS)
but since I’m using a 16*16 pixel image, the quality drops a lot.
When I try
new.show()
I get an error.
New contributor
Evan Huang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.