Pillow Flashcards
1
Q
pillow: In pillow, the RGBA values are stored as
A
a tuple with four values. Red, Green, Blue and Opacity. All of the values are between 0 and 255.
2
Q
pillow: To import pillow type
A
import PIL
3
Q
pillow: to get the RGBA values tuple for a color name, type
A
from PIL import ImageColor
ImageColor.getcolor(“color”, “RGBA”)
4
Q
pillow: To load an image into a var, type
A
from PIL import Image
image_var= Image.open(‘image.png’)
5
Q
pillow: To return the size of your image_var, type
A
image_var.size