SHARE
TWEET

img data to bin (totally useless)

DeaD_EyE Dec 25th, 2018 (edited) 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from PIL import Image
  2.  
  3. file = 'Downloads/40684136_558625954594999_870056590579859456_n.jpg'
  4. img = Image.open(file)
  5. binary_form = ''.join(bin(byte)[2:] for byte in img.tobytes())
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top