Skip to content

ychili/galleryviewer

Repository files navigation

Galleryviewer

Create an HTML viewer for an ordered gallery of images.

The program will take a series of paths to image files, sort them (by default), place them within an HTML template, and write the resultant file (by default to standard output). The result is an HTML document for browsing and viewing the images.

Requirements

For building the documentation:

  • make, sh, gzip, stat
  • Groff

Building

Make will place targets in a directory called data. The default Make target will generate the gzipped man page with the version number set to the current version number and the date set to the last doc source modification time in UTC. For setting the date reproducibly, it will use the last committer date from Git, falling back to mtime if Git is not available. make html will create an HTML version of this man page.

After running make, build the Python package (using Setuptools or a build frontend such as build).

Usage

galleryviewer [options] PATHS...

Provide the image filenames as arguments PATHS. Or, better, from the Unix shell, provide a glob pattern, like *.jpg or *.png, which the shell will then expand into a list of filenames that match that pattern. The program outputs the viewer file as text. Either use the --output option or the shell redirection operator, >, to save it to a file such as "index.html".

Consult the docs for details.

Copyright

Copyright 2022-2026 Dylan Maltby

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published