slhck / compress-pptx

Compress a PPTX file, converting all PNG/TIFF images to lossy JPEGs
Other
22 stars 5 forks source link

Transparency handling #6

Closed ondrejhavlicek closed 2 years ago

ondrejhavlicek commented 2 years ago

Currently it seems the tool should skip PNGs with transparency. However in fact my transparent PNGs appear with white background in the compressed PPTX. (After powerpoint complains that the file is broken and needs to be repaired, after clicking on Repair button in that dialog window)

slhck commented 2 years ago

Actually the original line about skipping transparent PNGs is outdated. I chose to replace them with white background since I needed it for some other task. Apparently I didn't put in a way to skip them, since that is the safer option. I will fix this as soon as I am back on a computer (surely not this week).

slhck commented 2 years ago

I added a flag to skip transparent images entirely.