Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created December 8, 2020 12:35
Show Gist options
  • Save Abhayparashar31/778348d917724669045b0c192c07b993 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/778348d917724669045b0c192c07b993 to your computer and use it in GitHub Desktop.
from PIL import Image, ImageOps
img1 = Image.open("img.png") ## Load a imge
img1.show()
img2 = ImageOps.grayscale(img1) ## gray scale
img2.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment