(1) When you have a lot of images needing a little bit of touching up, resizing, reformatting, or editing work; and (2) when you’ve got an image file or files in need of a lot of work -- for example, you need to combin...
5.图像水印 importosfromPILimportImagedefwatermark_photo(input_image_path,watermark_image_path,output_image_path):base_image=Image.open(input_image_path)watermark=Image.open(watermark_image_path).convert("RGBA")# add watermark to your imageposition=base_image.size newsize=(int(position[0]*8/100)...