Project

General

Profile

Actions

Bug #12714

open

Conversion of GIF to PDF broken when GIF contains Alpha.

Added by Carsten Rose over 2 years ago. Updated almost 2 years ago.

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

0%

Estimated time:
Discuss:
Prio Planung:
Vote:

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 View 18279.gif 2.04 MB Carsten Rose, 28.06.2021 11:09
Actions #1

Updated by Carsten Rose over 2 years ago

  • Description updated (diff)
Actions #3

Updated by Carsten Rose almost 2 years ago

  • Tracker changed from Support to Bug
Actions

Also available in: Atom PDF