README.md: add comparison to podofoimg2pdf

This commit is contained in:
Johannes 'josch' Schauer 2020-04-05 12:15:53 +02:00
parent 1b6e9e3da6
commit 24b679d8e5
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -257,6 +257,24 @@ of the plain pixel data and thus needlessly increases the output file size:
4500182 original.png 4500182 original.png
9318120 pdflatex.pdf 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 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 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 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. multipage TIFF or animated GIF, it will only convert the first frame.