PythonTutorials.net
Toggle Menu
Home
Online Python Compiler
Tutorials
Django
Flask
Scikit-Learn
NumPy
NLTK
Pillow
Blog
All Posts
Advanced Image Manipulation in Pillow
Assess your ability to handle color modes,masks,and composite images.
1. Which resampling filter is recommended for high-quality downscaling of images in Pillow?
Image.NEAREST
Image.BILINEAR
Image.LANCZOS
Image.HAMMING
2. Which of the following are valid color modes supported by Pillow for image manipulation?
RGB
CMYK
HSV
RGBZ
3. The ImageOps module in Pillow provides a pre-defined 'mirror' operation to flip an image horizontally.
True
False
4. What is the name of the Pillow ImageFilter class used to apply a Gaussian blur effect?
5. When rotating an image with Image.rotate(), which parameter prevents cropping of the rotated image?
expand
crop
keep_size
no_crop
6. Select all ImageFilter classes that are primarily used for edge detection or enhancement.
BLUR
EDGE_ENHANCE
FIND_EDGES
SHARPEN
7. Pillow's ImageSequence module allows iteration over frames of an animated GIF.
True
False
8. What is the method name in ImageDraw to draw a rounded rectangle on an image?
9. What is the return type of the Image.getdata() method in Pillow?
list
tuple
ImageData
PixelArray
10. Which of the following Image methods modify the image in-place (instead of returning a new image)?
paste
resize
rotate
thumbnail
Reset
Answered 0 of 0 — 0 correct