GitHub - SimplePhotoGallery/core: Create beautiful photo galleries from collections in 1 minute

2 min read Original article β†—

Simple Photo Gallery

Create beautiful photo galleries from collections in just 30 seconds. No configuration required to get startedβ€”simply run two commands in your photos folder and create a static gallery website you can self-host.

This is a free, open-source tool that you can use to generate galleries and self-host them. If you don't want to use the command line or bother with self-hostting, please check out simple.photo for a hosted solution.

Example Gallries

Simple Photo Gallery Demo

More examples

Features

πŸ“Έ Automatically scan directories with photos and videos
πŸ“ Show descriptions for photos and videos
πŸ“‚ Divide the gallery into sections to tell a story
πŸ–ΌοΈ Create optimized thumbnails for fast loading
πŸŽ₯ Play videos directly in the gallery
πŸ“± Generate galleries that work on all devices
⚑ Optimized to be fast and lightweight
πŸ”§ Generate a static HTML gallery that you can self-host

Quick Start

To create a gallery you need to install he simple-photo-gallery package globally and then you can use the spg command:

npm install -g simple-photo-gallery@latest
spg init
spg build

Alternatively you can use npx to run the commands directly:

npx simple-photo-gallery@latest init
npx simple-photo-gallery@latest build

This will:

  1. Install the simple-photo-gallery package from NPM (if you don't already have it)
  2. Prompt you for your gallery title, description, and header image
  3. Scan your photos and create a gallery.json file
  4. Generate optimized thumbnails
  5. Build a static HTML gallery that you can open in your browser and self-host

Installation Requirements

Supported Formats

Images: JPEG, PNG, WebP, GIF, TIFF
Videos: MP4, MOV, AVI, WebM, MKV

Detailed Documentation

For advanced usage, customization, and deployment options, see the comprehensive documentation:

Python Version

The old Python version of Simple Photo Gallery V1 is still available here, but is now deprecated.

License

Simple Photo Gallery is licensed under the MIT License - see LICENSE file for details.