From 24b679d8e5025d435462a58f51ed3cbbd453f683 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 5 Apr 2020 12:15:53 +0200 Subject: [PATCH] README.md: add comparison to podofoimg2pdf --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 53882b2..95e6ee8 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,24 @@ of the plain pixel data and thus needlessly increases the output file size: 4500182 original.png 9318120 pdflatex.pdf +Comparison to podofoimg2pdf +--------------------------- + +Like pdfLaTeX, podofoimg2pdf is able to perform a lossless conversion from JPEG +to PDF by plainly embedding the JPEG data into the pdf container. But just like +pdfLaTeX it uses flate compression for all other file formats, thus sometimes +resulting in larger files than necessary. + + $ convert logo: -resize 8000x original.png + $ podofoimg2pdf out.pdf original.png + stat --format="%s %n" original.png out.pdf + 4500181 original.png + 9335629 out.pdf + +It also only supports JPEG, PNG and TIF as input and lacks many of the +convenience features of img2pdf like page sizes, borders, rotation and +metadata. + Comparison to Tesseract OCR --------------------------- @@ -267,3 +285,4 @@ you should safely be able to use Tesseract instead of img2pdf. For other input, Tesseract might not do a lossless conversion. For example it converts CMYK input to RGB and removes the alpha channel from images with transparency. For multipage TIFF or animated GIF, it will only convert the first frame. +