Skip to main content

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 true or false).
  • ✍️ Option to overwrite output PDF (explicit true or false).
  • 🔒 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/c2p-cmd/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

pip install -r requirements.txt

🙌 Contributing

Open an issue or PR — happy to accept contributions or improvements!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

img2pdfify-0.2.5.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

img2pdfify-0.2.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file img2pdfify-0.2.5.tar.gz.

File metadata

  • Download URL: img2pdfify-0.2.5.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for img2pdfify-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b13979bcc9b22b38f092d8a18008cf1593f95076acae9e69baa60904023b9998
MD5 0453f24f63c1591e938244a723e7e7de
BLAKE2b-256 ec8cbc84b7ffa77b4cdd21a8d6d1819d32aa9744bf10e261469727f76a53dc7f

See more details on using hashes here.

File details

Details for the file img2pdfify-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: img2pdfify-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for img2pdfify-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ceee50e4d24704c0d42f8be65eaa82e01c60cb9782d16d1dcf8b472c49a6a561
MD5 be2a783a707a7744eb95fffdee44067c
BLAKE2b-256 34a932f6b3543d62368de3a2ae14e3470d4eef1adbd7e8153454347edeb43c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page