tgoop.com/CodeProgrammer/2588
Create:
Last Update:
Last Update:
🔅 Compress Images
from PIL import Image
in_img = 'input.png'
out_img = 'compressed.png'
# Open the image
with Image.open(in_img) as img:
# Save the compressed image
img.save(out_img, 'PNG', quality=80)
print(f"Image compressed successfully!")
https://www.tgoop.com/CodeProgrammer
More Likes, Share,
BY Python | Machine Learning | Coding | R
Share with your friend now:
tgoop.com/CodeProgrammer/2588