Image Processing with Pillow

Test your skills in image transformations,filtering,and format conversions using Pillow.

1. Which module must be imported from PIL to work with images in Pillow?
2. Which of the following are valid image modes in Pillow that support transparency?
3. Pillow is a fork of the Python Imaging Library (PIL).
4. What is the name of the function in the Image module used to open an image file?
5. What is the default color mode when opening a standard JPEG image with Pillow?
6. Which methods can be used to resize an image in Pillow?
7. The 'thumbnail()' method modifies the original image object in place.
8. What is the abbreviation for the image mode that represents grayscale (luminance)?
9. Which ImageFilter constant is used for sharpening an image?
10. Which image file formats are supported by Pillow without additional libraries?
11. Pillow's ImageDraw module can be used to draw text on an image.
12. What does the 'convert()' method of an Image object return?
13. Which image modes support 8-bit color depth?
14. The JPEG file format supports transparency via an alpha channel.
15. What is the method name to apply a filter (e.g., blur, sharpen) to an image?
16. Which method is used to crop an image in Pillow?
17. Which are valid resampling filters for the 'resample' parameter in resize()?
18. Pillow can read and write animated GIFs.
19. What is the name of the object created to draw on images (from PIL.ImageDraw)?
20. Which color space conversion is NOT directly supported by Image.convert()?
Answered 0 of 0 — 0 correct