Convert images to a single PDF via command line
Project description
🖼️ img2pdfify
A simple command-line tool to convert images (PNG, JPG, JPEG) into a single PDF file. Each image gets its own page in the output PDF.
🚀 Features
- 📂 Accepts either a single image or a folder of images.
- 🔁 Recursive folder search (explicit
trueorfalse). - ✍️ Option to overwrite output PDF (explicit
trueorfalse). - 🔒 Strict CLI usage — you must specify all options clearly.
- 🧠 Uses Pillow for reliable image handling.
📦 Installation
1. Clone the repo
git clone https://github.com/yourusername/img2pdfify.git
cd img2pdfify
2. Install locally
pip install -e .
🧪 Usage
img2pdfify <input_path> <output_file.pdf> --recursive true|false --overwrite true|false
📌 Examples
Convert images from a folder (non-recursive, no overwrite):
img2pdfify ./images myoutput.pdf --recursive false --overwrite false
Convert a single image and allow overwriting the output:
img2pdfify image.jpg output.pdf --recursive false --overwrite true
🧰 Dependencies
- Python 3.7+
- Pillow
pip install -r requirements.txt
🙌 Contributing
Open an issue or PR — happy to accept contributions or improvements!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file img2pdfify-0.1.0.tar.gz.
File metadata
- Download URL: img2pdfify-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99119977356e8340d4de422c21495d05d6de9afc13a4181381a31d1a2f89b7b3
|
|
| MD5 |
e56c26802b735d3f4a7dd839b62ec964
|
|
| BLAKE2b-256 |
dc1ac9a8c22a21b6ec8f29544564d14385005e3960832783dc276a6f975c46f4
|
File details
Details for the file img2pdfify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: img2pdfify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58226b07ef16bdff2a523066270f0278d17865b9e988791c5fd2a022c4c052d2
|
|
| MD5 |
d6232810121019223f17ab5c37ca031c
|
|
| BLAKE2b-256 |
6dde45f445a557ccea20e89289d4b4ccb5986e01063d6d7446121441f086ad4a
|