Advertisement
DeaD_EyE

img data to bin (totally useless)

Dec 25th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  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())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement