Skip to content

mrseanryan/folder-cover-gen

Repository files navigation

folder-cover-gen README

Generates cover images for a tree of image folders, a bit like the folder preview feature of Dropbox.

Example output:

with-cover

The generated colors (padding, border, canvas background) can be customised:

no-cover

  • performance: makes use of GPU (via opencv) and multithreading

Usage

./go.sh <path to root folder>
  • note: if an image is named with the prefix cover. then it will always be used in the generated folder image, and be placed at the top
    • only 1 such image should appear in each folder
  • if the folder already has a folder_cover.jpg file, then that folder is skipped, unless the --force option is used.

For more details and options, see the built-in help:

./go.sh

Setup

Dependencies

  1. Install uv

Assumption: you have already installed a recent version of Python.

pip install uv
  1. Install Python dependencies
uv python install 3.14
uv venv --python 3.14
uv sync

Test

Run unit tests:

./test.sh

Run e2e tests:

./test.e2e.sh

About

Generates cover images for a tree of image folders.

Topics

Resources

License

Stars

Watchers

Forks

Contributors