Compress PNG (keep Transparency) Online Tool
This online bulk compress PNG online tool helps you to reduce png PNG size while keep its transparency, to transmit image/photo faster cross Internet.
While JPEG uses RGB color for each pixel, PNG format uses RGBA for each pixel. 'A' stands for
opacity, it means if we set the background opacity to
0%, the background will be transparent.
|Compress Level||lossless format||lossy format|
|EXIF||Don't Support EXIF||Support EXIF|
|Transparency||Support Transparency||Don't Support Transparency|
|Most Use Case||created images||photographs|
All uploaded Images will be deleted after 1 hour, so please download the result as soon as possible. DO NOT use this server as your image hosting service.
from PIL import Image # pip3 install pillow origin_file_path = './origin.png' compressed_file_path = './compressed.png' original_image = Image.open(origin_file_path) original_image.convert('P') original_image.save(compressed_file_path, optimize=True, quality=80)