interwebjill
interwebjill

Reputation: 950

Issue using Python PIL/pillow to resize image

I have read a data array into pillow via the Image.fromarray method. While I am able to bring it into pillow and successfully paste it onto another image in memory, img.resize((1920,1080)) and img,thumbnail((1920, 1080)) have no effect (and no error).

Upvotes: 0

Views: 280

Answers (1)

ptyshevs
ptyshevs

Reputation: 1672

That's because this operations create copies affected by the corresponding transformation. Have you tried img = img.resize((1920, 1080))?

Upvotes: 1

Related Questions