How haizhiya233/images-to-pdf works
Images-to-PDF is a Windows command-line/TUI tool that converts a folder’s images into a multi-page PDF, either as one job or as one PDF per image-containing subfolder. The principal flow is folder input → discovery and natural sorting → IrfanView configuration and invocation → PDFs in the output directory, with batch workers reporting status to the progress grid. The optional launcher fetches and verifies portable IrfanView before forwarding arguments to the converter. README documents these capabilities; omitted source excerpts limit certainty about some internal wiring.
Main entry points: folder_to_pdf.py PDF conversion · launcher.py Portable launcher
Components 19
Conversion workflow
- Interactive CLI
folder_to_pdf.py - Mode dispatch
folder_to_pdf.py - Image discovery
folder_to_pdf.py - Natural sorting
folder_to_pdf.py - Batch coordinator
folder_to_pdf.py - Parallel workers
folder_to_pdf.py - Progress grid
folder_to_pdf.py - PDF conversion
folder_to_pdf.py - PDF configuration
folder_to_pdf.py - Command builder
folder_to_pdf.py - PDF output
folder_to_pdf.py
Portable runtime
- Portable launcher
launcher.py - Package download
launcher.py - SHA-256 verification
launcher.py - Package extraction
launcher.py - Temporary cache
launcher.py
Other components
- User
- IrfanView
- Official download host
Connections 22
- User → Interactive CLI: provides folder
- Interactive CLI → Mode dispatch: dispatches input
- Mode dispatch → Image discovery: finds images
- Image discovery → Natural sorting: sorts naturally
- Mode dispatch → Batch coordinator: starts batch
- Batch coordinator → Parallel workers: submits jobs
- Parallel workers → PDF conversion: converts folders
- Mode dispatch → PDF conversion: converts single
- PDF conversion → Image discovery: collects images
- PDF conversion → Command builder: builds command
- Command builder → PDF configuration: selects settings
- PDF conversion → IrfanView: invokes
- IrfanView → PDF output: writes PDFs
- Parallel workers → Progress grid: reports status
- User → Portable launcher: starts portable mode
- Portable launcher → Package download: requests packages
- Package download → Official download host: fetches from
- Package download → SHA-256 verification: checks hashes
- Package download → Temporary cache: stores packages
- Portable launcher → Package extraction: unpacks packages
- Package extraction → Temporary cache: installs in
- Portable launcher → Interactive CLI: runs with path