RECENT POSTS
- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
Py-img2pdf
Jul 20, 2023
Convert images to PDF via direct JPEG inclusion
This Python package provides lossless conversion of raster images to PDF. 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.
Conventional conversion software like ImageMagick would either
- Not be lossless because lossy re-encoding to JPEG.
- Not be small because using wasteful flate encoding of raw pixel data.
- Not be fast because input data gets re-encoded.
Another advantage of not having to re-encode the input in most common situations is, that img2pdf is able to handle much larger input than other software, because the raw pixel data never has to be loaded into memory.
- Older
- Newer
Checkout these related ports:
- Zphoto - Zooming photo album generator
- Zint - Barcode generator (library and utilities)
- Zimg - Image-generator that uses ASCII input files to create PNGs/EDFs
- Zgv - Graphics viewer for SVGAlib
- Zbar - ZBar barcode reader
- Zathura - Customizable lightweight pdf viewer
- Zathura-ps - PostScript support for Zathura PDF viewer
- Zathura-pdf-poppler - Poppler render PDF plugin for Zathura PDF viewer
- Zathura-pdf-mupdf - MuPDF render PDF plugin for Zathura PDF viewer
- Zathura-djvu - DjVu support for zathura
- Zathura-cb - Comic book plugin for Zathura PDF viewer
- Yukon - Real-time capture tool for OpenGL applications
- Yed - Editor for graphs and diagrams
- Yafaray - Montecarlo raytracing engine
- Yacreader - Yet another comic reader