Skip to content

Instantly share code, notes, and snippets.

@keimina
Created December 14, 2013 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keimina/7954993 to your computer and use it in GitHub Desktop.
Save keimina/7954993 to your computer and use it in GitHub Desktop.
#read image and convert grayscal
from PIL import Image
pil_im = Image.open('./data/empire.jpg').convert('L')
pil_im.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment