From b7aa09834cb2ce3e05805d5a4fa60fa8a931e322 Mon Sep 17 00:00:00 2001 From: josch Date: Sat, 9 May 2015 07:39:50 +0200 Subject: [PATCH] README.md: update treatment of non-jpeg files --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 64ec83f..8d2053b 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,15 @@ code into the garbage bin :D Functionality ------------- -This program will take a list of images and produce a PDF file with the -images embedded in it. JPEG and JPEG2000 images will be included without +This program will take a list of images and produce a PDF file with the images +embedded in it. JPEG and JPEG2000 images will be included without recompression. Images in other formats will be included with zip/flate -encoding. As a result, this tool is able to losslessly wrap any image -into a PDF container with a quality-filesize ratio that is typically better -than that of existing tools. +encoding which usually leads to an increase in the resulting size because +formats like png compress better than PDF which just zip/flate compresses the +RGB data. As a result, this tool is able to losslessly wrap images into a PDF +container with a quality-filesize ratio that is typically better (in case of +JPEG and JPEG2000 images) or equal (in case of other formats) than that of +existing tools. For example, imagemagick will re-encode the input JPEG image (thus changing its content): @@ -51,10 +54,7 @@ save other graphics formats using lossless zip compression, and produce multi-page PDF files when more than one input image is given. Also, since JPEG and JPEG2000 images are not reencoded, conversion with -img2pdf is several (ten to hundred) times faster than with imagemagick. -While the above convert command with a 2.8MB JPEG took 27 seconds -(on average) on my machine, conversion using img2pdf took just a -fraction of a second. +img2pdf is several times faster than with other tools. Usage