SHARE
TWEET

Untitled

a guest Aug 13th, 2018 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def process_image_string(f, size):
  2.     f_image = Image.open(f)
  3.     f_image = f_image.resize(size)
  4.     output = StringIO()
  5.     f_image.save(output, "JPEG")
  6.     return output
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top