
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
ggallery
is a Python tool that generates a static HTML photo gallery website from a YAML specification and from given renderer plugin. It allows you to create beautiful and customizable photo galleries with ease, using various data sources and storage providers.
To install ggallery
, you need to have Python with pip package manager in your system.
Then you can install the tool using the following command:
pip install ggallery
You can run the ggallery
using the following commands:
python -m ggallery -f /path/to/your/gallery.yaml
or
ggallery -f /path/to/your/gallery.yaml
If you have the gallery.yaml
file in the current directory, you can run the tool without specifying the file path:
ggallery
Photos and HTML files are stored in the same directory as the static website. It will procude a directory ready to be served by a web server.
LOCAL_PHOTOS_PATH
: Path to the directory containing photos.DOCKER_HOST
Hostname of the Docker host. (e.g tcp://localhost:2375)gallery.yaml
file with the following content:title: Local Gallery
subtitle: Gallery with photos stored in the same directory as static website.
thumbnail:
height: 400
template:
url: https://github.com/creeston/ggallery-nanogallery2
data_source:
type: local
path: "${LOCAL_PHOTOS_PATH}" # Path to the directory containing photos.
data_storage:
type: local # Store photos in the same directory as the static website.
albums:
- title: "Japan"
subtitle: "Photos from my trip to Japan"
source: "japan"
cover: "view on the Fuji.jpg"
- title: "Italy"
source: "italy"
cover: "colliseum.jpg"
photos:
- title: "View at the Colosseum at night"
source: "colliseum.jpg"
# Output directory for the generated gallery website.
output:
path: docs
index: index.html
# Docker image configuration
docker:
image_name: "username/my-photo-gallery"
image_version: "latest"
host: "${DOCKER_HOST}"
Photos are stored in Azure Blob Storage. The generated gallery will contain links to the photos stored in Azure Blob Storage.
LOCAL_PHOTOS_PATH
: Path to the directory containing photos.AZURE_CONTAINER
: Azure Blob Storage container name.AZURE_CONNECTION_STRING
: Azure Blob Storage connection string.gallery.yaml
file with the following content:title: Azure Gallery
subtitle: Gallery of photos stored in Azure Blob Storage
favicon:
type: fontawesome
name: camera-retro
thumbnail:
height: 400
template:
url: https://github.com/creeston/ggallery-nanogallery2
data_source:
type: local
path: "${LOCAL_PHOTOS_PATH}"
# Azure Blob Storage configuration, used to store photos and thumbnails.
data_storage:
type: azure-blob
container: "${AZURE_CONTAINER}"
connection_string: "${AZURE_CONNECTION_STRING}"
albums:
- title: "Japan"
subtitle: "Photos from my trip to Japan"
source: "japan"
cover: "view on the Fuji.jpg"
- title: "Italy"
source: "italy"
cover: "colliseum.jpg"
photos:
- title: "View at the Colosseum at night"
source: "colliseum.jpg"
output:
path: docs
index: index.html
ggallery doesn't contain any templates by default. You can create your own plugin by implementing ggalllery.renderers.BaseRenderer
class. The plugin can be stored either locally or in a public github repository. URL to the repository should be provided in the gallery.yaml
file in the template.url
field.
Examples:
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A tool to generate static HTML photo galleries from various data sources.
We found that ggallery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.