Skip to content

A simple Python tool to convert multiple images (WEBP, PNG, JPG, JPEG, BMP, TIFF) into a single PDF file. Supports numeric ordering (######1, ######2...) or falls back to alphabetical.

License

Notifications You must be signed in to change notification settings

AhmedBoudkhil/image-merge-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

image-merge-pdf

A simple Python tool to convert multiple images (WEBP, PNG, JPG, JPEG, BMP, TIFF) into a single PDF file. Supports numeric ordering (######1, ######2...) or falls back to alphabetical.

πŸ–ΌοΈ Image to PDF Converter

A lightweight Python script that converts multiple images into a single PDF file.
Supports .webp, .png, .jpg, .jpeg, .bmp, and .tiff formats.

It automatically sorts files numerically if filenames contain ######<number>,
otherwise it falls back to alphabetical order.


πŸš€ Features

  • βœ… Convert multiple image formats into one PDF
  • βœ… Supports .webp, .png, .jpg, .jpeg, .bmp, .tiff
  • βœ… Keeps images in numeric order if filenames use ######<number>
  • βœ… Works on Linux, macOS, Windows

πŸ”§ Installation

Clone the repo and install the required dependency:

git clone https://github.com/yourusername/image-to-pdf.git

πŸ“‚ Usage

python3 convert.py /path/to/images output.pdf

πŸ“œ Example Filenames

img1######1.webp img2######1.webp img3######3.webp

.

πŸ“ Requirements

Python 3.7+

Pillow

pip install -r requirements.txt
cd image-to-pdf
pip install -r requirements.txt

About

A simple Python tool to convert multiple images (WEBP, PNG, JPG, JPEG, BMP, TIFF) into a single PDF file. Supports numeric ordering (######1, ######2...) or falls back to alphabetical.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages