@cvp I get what you are asking. Sorry for the confusion...
I have a script that uses the photos module to capture an image. I then use BytesIO to save the output as JPEG then base64 encoded so I can send it to an api. I want to figure out a way to make sure the resolution of the captured photo isnt above a certain size before I send it to the api to cut down on the filesize. I am hoping this will help with uploading the image on slower networks since it doesnt need to be that large. Since the photo is a PIL image when captured can I set it then or change it with the Images module? I have been trying to research this but am still not the greatest at code haha
Hopefully that makes sense?
Thanks again for the help,
Colin