Project

General

Profile

Bug #12714

Updated by Carsten Rose over 2 years ago

<pre> 
 $ 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 
 </pre> 

 Vorschlag: 

 * Check ob img2pdf mit dem Fehler abbricht 
 * Falls ja, convert wie vorgeschlagen. 
 * Damit der Convert nicht bei jedem Download download gemacht werden muss: Orginalfile orginal file umbenennen und das konvertierte dann unter dem original Namen namen abspeichen.

Back