from PIL import Image

# Open an image file
img = Image.open('image_1.jpg')
print(f'Original size: {img.size}')

# Resize the image
resized_img = img.resize((300, 168))
print(f'Resized size: {resized_img.size}')

# Crop a region of the image (left, top, right, bottom)
cropped_img = img.crop((1820, 1080, 2120, 1380))
print(f'Cropped size: {cropped_img.size}')

# Save the modified images
resized_img.save('example_resized.jpg')
cropped_img.save('example_cropped.jpg')