Resize Image To Size of Other Image Python PIL

253 Views Asked by At

I have one image, and I have another image that I would like to resize to the size of the first image in python. I've attempted this in many different ways, all resulting in failure. How can I do this?

Some failed methods:

.thumbnail(), only works for a PIL image, which means it can't interact with SimpleCV images later on in the program

.resize(), when I used the arguments, it resulted in the error.

Alternate Solution:

Setting camera resolution, though I have no idea how to do this.

1

There are 1 best solutions below

0
AudioBubble On BEST ANSWER

As the camera was the only object with an unknown size, I was able to set it like the following:

cam = camera(prop_set ={'width':width, height:'height'})