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.
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.
- β 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
Clone the repo and install the required dependency:
git clone https://github.com/yourusername/image-to-pdf.git
python3 convert.py /path/to/images output.pdf
img1######1.webp img2######1.webp img3######3.webp
.
Python 3.7+
Pillow
pip install -r requirements.txt
cd image-to-pdf
pip install -r requirements.txt