img data to bin (totally useless)
DeaD_EyE Dec 25th, 2018 (edited) 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from PIL import Image
- file = 'Downloads/40684136_558625954594999_870056590579859456_n.jpg'
- img = Image.open(file)
- binary_form = ''.join(bin(byte)[2:] for byte in img.tobytes())
RAW Paste Data