Created
June 9, 2016 12:56
-
-
Save CreateRemoteThread/cd934113d072ae4e506d665a7f773693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| from PIL import Image | |
| import sys | |
| f = Image.open("doge2.png") | |
| f_rgb = f.convert("RGB") | |
| print f_rgb.getpixel((370,336)) | |
| print f_rgb.getpixel((404,342)) | |
| print f_rgb.getpixel((607,355)) | |
| print f_rgb.getpixel((535,375)) | |
| out_f = Image.new("RGB",(960,720),"black") | |
| out = out_f.load() | |
| for x in range(0,960): | |
| for y in range(0,720): | |
| (r,g,b) = f_rgb.getpixel((x,y)) | |
| if r > 0 and r < 255 and (r % 2 == 1): | |
| # if r == 19 or r == 27 or r == 31 or r == 29 or r == 21: | |
| out[x,y] = (255,255,255) | |
| out_f.save("fuck.png") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment