Project

General

Profile

Support #12714

Conversion of GIF to PDF broken when GIF contains Alpha.

Added by Carsten Rose 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Start date:
28.06.2021
Due date:
% Done:

0%

Estimated time:
Discuss:

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

18279.gif (2.04 MB) 18279.gif Carsten Rose, 28.06.2021 11:09
#1

Updated by Carsten Rose 3 months ago

  • Description updated (diff)

Also available in: Atom PDF