Actions
Bug #12714
openConversion of GIF to PDF broken when GIF contains Alpha.
Start date:
28.06.2021
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Description
$ img2pdf --pagesize A4 -o 1.pdf 18279.gif WARNING:root:Image contains transparency which cannot be retained in PDF. WARNING:root:img2pdf will not perform a lossy operation. WARNING:root:You can remove the alpha channel using imagemagick: WARNING:root: $ convert input.png -background white -alpha remove -alpha off output.png ERROR:root:error: Refusing to work on images with alpha channel $ convert 18279.gif -background white -alpha remove -alpha off 18279.clean.gif $ img2pdf --pagesize A4 -o 1.pdf 18279.clean.gif
Vorschlag:
- Check ob img2pdf mit dem Fehler abbricht
- Falls ja, convert wie vorgeschlagen.
- Damit der Convert nicht bei jedem Download gemacht werden muss: Orginalfile umbenennen und das konvertierte dann unter dem original Namen abspeichen.
Files
Actions