How to convert images to grayscale with pil code example Example: pillow rgb to grayscale Image.open(path).convert('LA')