From cde7472d15c795790b45e7d3316dea2f764d5db1 Mon Sep 17 00:00:00 2001 From: mara0004 Date: Sun, 19 Sep 2021 08:50:50 +0000 Subject: [PATCH] Update documentation: img2pdf now supports alpha channels --- src/img2pdf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/img2pdf.py b/src/img2pdf.py index bba5ec9..f38f557 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -3355,9 +3355,9 @@ Losslessly convert raster images to PDF without re-encoding PNG, JPEG, and JPEG2000 images. This leads to a lossless conversion of PNG, JPEG and JPEG2000 images with the only added file size coming from the PDF container itself. Other raster graphics formats are losslessly stored using the same encoding -that PNG uses. Since PDF does not support images with transparency and since -img2pdf aims to never be lossy, input images with an alpha channel are not -supported. +that PNG uses. +For images with transparency, the alpha channel will be stored as a separate +soft mask. This is lossless, too. The output is sent to standard output so that it can be redirected into a file or to another program as part of a shell pipe. To directly write the output