This program helps in creating markdown photo minutes (e.g. for open spaces). It offers the following processing steps:
- Take a directory structure that contains images of sessions
of the following form (names of the directories and file don't matter)
- session 1 - image_1.jpg - image_2.jpg - session 2 - image_1.jpg
- Convert images as follows:
- Create thumbnails for each image
- Create the enlarged image version
- Save the converted images in the given output directory
- Create the Markdown document that includes the created thumbnails
and links to the enlarged version of the images.
The Markdown document is printed to
stdout
.
The program has four mandatory arguments:
- the thumbnail ratio (passed as
--thumbnail-ratio <float>
) - the directory that contains the
INPUT
structure - the directory where the
OUTPUT
should be written to - the
BASE_ONLINE_PATH
where the created images will be hosted
So an example invocation would be
cargo run -- --thumbnail-ratio 0.3 /path/to/input-files /path/to/output-files http://localhost/where-created-images-are-hosted
and would do the following:
- go through the directory structure in
/path/to/input-files
- created the images
- save them in under
/path/to/output-files
- print the Markdown document with the links pointing at
http://localhost/where-created-images-are-hosted/...
tostdout