Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def process_image_string(f, size):
- f_image = Image.open(f)
- f_image = f_image.resize(size)
- output = StringIO()
- f_image.save(output, "JPEG")
- return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement