{"categories":[{"label":"Graphics","url":"https://skillfed.io/packages/category/multimedia-graphics"}],"enrichment":{"capability":"Converts raster images to PDF without re-encoding pixel data, prioritizing lossless output, small file size, and speed by embedding images directly into the PDF container when possible.","skillfed_tags":["image-conversion","pdf-generation","cli-tool"],"use_cases":["Batch convert a folder of photographs to PDF without quality loss or file bloat for archival or sharing.","Create a multi-page PDF from a sequence of scanned document images while preserving original resolution.","Embed images directly into PDF containers from a Python script with minimal overhead and maximum speed.","Process JPEG or PNG images to PDF in a pipeline (e.g., from a scanner or camera) without intermediate re-encoding.","Handle CMYK or monochrome images that require specific PDF encoding while keeping file sizes small."],"what_it_does":"img2pdf is a Python library and command-line tool that converts raster images into PDF files while preserving image quality and minimizing file size. Unlike general-purpose image converters, it avoids re-encoding pixel data whenever possible\u2014for JPEG, JPEG2000, PNG, TIFF, and JBIG2 formats, the image data is embedded directly into the PDF container with only minimal PDF overhead added. For other formats or color spaces, it applies appropriate compression filters (PNG Paeth, CCITT Group 4, or flate) before embedding.\n\nThe package works both as a standalone command-line tool and as a Python library. It handles single images, multiple images, and batch operations from directories or glob patterns. It depends on Pillow for image metadata extraction and format conversion when needed, and pikepdf for PDF handling. The tool is designed to handle large images efficiently by avoiding full decompression into memory during the conversion process.","worth_installing":"Yes. The package fills a specific, well-defined niche: lossless image-to-PDF conversion with minimal file size and fast processing. Low install friction, no security vulnerabilities, and broad format support make it a solid choice for image-to-PDF workflows. The copyleft license is a minor consideration only if you plan to redistribute derivative code. Aging maintenance status (282 days since last release) is not a blocker for a stable, mature tool, but monitor for any future issues."},"id":"img2pdf","links":{"html":"https://skillfed.io/packages/img2pdf","md":"https://skillfed.io/packages/img2pdf.md","pypi":"https://pypi.org/project/img2pdf/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-05","license_spdx":null,"license_treatment":"copyleft","name":"img2pdf","python_support":"supports_current","summary":"Lossless conversion of raster images to PDF."},"popularity":{"monthly_downloads":2325033,"position":3139,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.6.3"}
