1
0
Fork 0
forked from josch/img2pdf

Reflect the fact that we now use PNG compression in the --help output

This commit is contained in:
Johannes 'josch' Schauer 2018-03-24 19:53:41 +01:00
parent e78dd80451
commit 920506b867
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1461,15 +1461,13 @@ def main():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter, formatter_class=argparse.RawDescriptionHelpFormatter,
description='''\ description='''\
Losslessly convert raster images to PDF without re-encoding JPEG and JPEG2000 Losslessly convert raster images to PDF without re-encoding PNG, JPEG, and
images. This leads to a lossless conversion of JPEG and JPEG2000 images with JPEG2000 images. This leads to a lossless conversion of PNG, JPEG and JPEG2000
the only added file size coming from the PDF container itself. images with the only added file size coming from the PDF container itself.
Other raster graphics formats are losslessly stored using the same encoding
Other raster graphics formats are losslessly stored in a zip/flate encoding of that PNG uses. Since PDF does not support images with transparency and since
their RGB representation. This might increase file size and does not store img2pdf aims to never be lossy, input images with an alpha channel are not
transparency. There is nothing that can be done about that until the PDF format supported.
allows embedding other image formats like PNG. Thus, img2pdf is primarily
useful to convert JPEG and JPEG2000 images to PDF.
The output is sent to standard output so that it can be redirected into a file 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 or to another program as part of a shell pipe. To directly write the output