There is a crop()
method:
w, h = yourImage.size
yourImage.crop((0, 30, w, h-30)).save(...)
More Related Contents:
- How to Split Image Into Multiple Pieces in Python
- Automatically cropping an image with python/PIL
- Image Cropping using Python
- How do I resize an image using PIL and maintain its aspect ratio?
- Combine several images horizontally with Python
- How to reduce a jpeg size to a ‘desired size’?
- How to install PIL with pip on Mac OS?
- How to write PNG image to string with the PIL?
- Trim whitespace using PIL
- How do I generate circular thumbnails with PIL?
- How to use PIL to make all white pixels transparent?
- How can I crop an image with Pygame?
- Python Imaging Library – Text rendering
- PIL Convert PNG or GIF with Transparency to JPG without
- Convert png to jpeg using Pillow
- How to read a raw image using PIL?
- How to convert PIL Image.image object to base64 string? [duplicate]
- Package (Python PIL/Pillow) installed but I can’t import it
- Preserve exif data of image with PIL when resize(create thumbnail)
- Converting a PDF to a series of images with Python
- img = Image.open(fp) AttributeError: class Image has no attribute ‘open’
- Detecting thresholds in HSV color space (from RGB) using Python / PIL
- Python imaging library show() on Windows
- How to add all images from a folder to a button (in my frame) [closed]
- PIL “IOError: image file truncated” with big images
- How do I create an image in PIL using a list of RGB tuples?
- How to CREATE a transparent gif (or png) with PIL (python-imaging)
- Python Image Library: How to combine 4 images into a 2 x 2 grid?
- Resize image in Python without losing EXIF data
- How do I draw text at an angle using python’s PIL?