img2pdf is a small utility to losslessly convert raster images to PDF without unnecessarily re-encoding JPEG and JPEG2000 files.
You should use img2pdf if your priorities are (in this order):
- always lossless: the image embedded in the PDF will always have the exact same color information for every pixel as the input.
- small: if possible, the difference in filesize between the input image and the output PDF will only be the overhead of the PDF container itself
- fast: if possible, the input image is just pasted into the PDF document as-is without any CPU hungry re-encoding of the pixel data.
The software is written in the Python programming language.
Key Features
- Able to handle much larger input than other software, because the raw pixel data never has to be loaded into memory.
- For JPEG, JPEG2000, non-interlaced PNG and TIFF images with CCITT Group 4
encoded data, img2pdf directly embeds the image data into the PDF without
re-encoding it. - For all other input types, img2pdf first has to transform the pixel data to make it compatible with PDF. In most cases, the PNG Paeth filter is applied to
the pixel data. For monochrome input, CCITT Group 4 is used instead. Only for
CMYK input no filter is applied before finally applying flate compression.
Website: gitlab.mister-muffin.de/josch/img2pdf
Support:
Developer: Johannes ‘josch’ Schauer
License: GNU Lesser General Public License Version 3
img2pdf is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| PDF Manipulation Tools | |
|---|---|
| Stirling PDF | Locally hosted web based PDF manipulation tool |
| PDFsam | Extract pages, split, merge, mix and rotate PDF files |
| pdfcpu | PDF processing library |
| PDF Mix Tool | Perform common editing operations on PDF files |
| PDF Arranger | Merge, rearrange, split, rotate, and crop PDFs |
| cpdf | Set of command-line tools that let you modify PDF files |
| pdftk | The PDF toolkit |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| pstoedit | Translates PostScript and PDF graphics into other vector formats |
| img2pdf | Lossless conversion of raster images to PDF |
| PDF Chain | Graphical user interface for The PDF Toolkit |
| Tabula | Extract data tables inside PDF files |
| PDFStitcher | Utility for stitching together PDF pages |
| wkhtmltopdf | Render HTML into PDF |
| krop | Simple graphical tool to crop the pages of PDF files |
| Qpdf Tools | Qt interface for Ghostscript and QPDF |
| Quick PDF Join | Joins multiple PDF files together |
| PDF Tricks | Offer small manipulations in PDF files |
| OnePDFPlease | TUI for working with PDF files |
| PdfJumbler | Rearrange, merge, delete, and rotate pages |
| PDF Juggler | Mix, reorder and select PDF pages |
| jpeg2pdf | Command-line tool which lets you convert images to PDF |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.