11 lines
320 B
Python
11 lines
320 B
Python
from PIL import Image
|
|
|
|
def crop_bag(path, out_path):
|
|
img = Image.open(path)
|
|
cropped = img.crop((800, 130, 980, 440))
|
|
cropped.save(out_path)
|
|
print(f"Cropped bag saved to {out_path}")
|
|
|
|
if __name__ == "__main__":
|
|
crop_bag("public/images/slider-courier-mask-purple.png", "public/images/cropped_bag.png")
|