Analyze, auto-trim and brighten a bunch of input photos and create a multipage PDF document, one photo per page.
Go to file
2024-07-15 08:10:04 +02:00
template/a4paper add missing svg for A4 landscape template 2024-03-10 14:15:27 +01:00
.gitignore ignore image and temporary files 2023-12-10 12:14:05 +01:00
Makefile exclude SVGs from installation 2023-12-10 23:14:02 +01:00
photos2pdf add option to not post-process pictures 2024-07-15 08:10:04 +02:00
README.md replace pdftk with qpdf 2024-03-24 01:27:15 +01:00

photos2pdf - Create PDF from Series of Photos

Description

Optimized for the processing of ad-hoc photos of flipcharts and whiteboards, this converter utility scans a given directory for each file with the .jpg filename extension, post-processes it (stretching contrast and trimming content to the actual drawings. From the resulting pictures a PDF is generated, one picture per page.

Dependencies

This utility requires the following tools to be installed:

apt install imagemagick pdfjam qpdf

Installation

git clone https://tk-sls.de/git/tk-sls.de/photos2pdf.git
cd photos2pdf
sudo make install

Usage

Given a directory some_directory containing one or more JPEG pictures (the filenames have to end with .jpg):

photos2pdf --result-filename output.pdf some_directory

The utility offers some options that control the aspects of the conversion; use the --help option for usage instructions.

©2023 Tilman Kranz <(t.kranz@tk-sls.de)[mailto:t.kranz@tk-sls.de]>