18

I'm looking to create an image gallery, to show images I have taken. Is there any software that would be great for this? I am open to any suggestions.

Would prefer if this was:

  • Lightweight
  • Able to easily add images
  • Maintained

I am looking for something similar to this: kaiser.gallery

I have tried out creating this through Ghost, Grav and have previous experience with WordPress (Too bulky, with many unneeded features).

top 8 comments
sorted by: hot top controversial new old
[-] homegrowntechie@lemmy.world 6 points 1 year ago
[-] msinfo32@lemmy.msinfo32.uk 1 points 1 year ago

This looks great! Thanks.

[-] thejevans@lemmy.ml 4 points 1 year ago
[-] msinfo32@lemmy.msinfo32.uk 1 points 1 year ago

Does PhotoPrism allow you to have a public page? This would be so you can visit the page and just view images, not for a private gallery. Did not know it had a feature for this?

[-] thejevans@lemmy.ml 2 points 1 year ago
[-] msinfo32@lemmy.msinfo32.uk 1 points 1 year ago

This looks like a good option. Looks like I didn't look far enough into the docs. Thanks!

[-] baltakatei@sopuli.xyz 2 points 1 year ago* (last edited 1 year ago)

fgallery

TL;DR: fgallery is a dumb static web gallery generator: EXAMPLE, SETUP.

There's fgallery which is a small Debian package that takes an input directory (e.g. photo-dir) and creates a static website in a new directory (e.g. my-gallery).

$ fgallery photo-dir my-gallery

Description

From the Debian package details page.

static HTML+JavaScript photo album generator

“fgallery” is a static photo gallery generator with no frills that has a stylish, minimalist look. “fgallery” shows your photos, and nothing else.

There is no server-side processing, only static generation. The resulting gallery can be uploaded anywhere without additional requirements and works with any modern browser.

Among all the Debian packages similar to this one, this seems the most recently maintained (version 1.9.1 came out 2022-12-31). It is licensed GPLv2+ so the source code is available.

Upload to a web server

After running fgallery as described above, upload my-gallery to your static web page directory (e.g. /var/www/html/ with a typical apache2 setup) and open the index.html through a web browser.

Here's an example gallery I made just now (setup procedure).

Image

( Photo by Baltakatei / 🅭🅯🄎 4.0 )

Viewing locally with a browser

To view the gallery locally without uploading to a web server (e.g. a Digital Ocean droplet) or static content hosting service (e.g. AWS S3), you can do so with your own web browser. However, because the fgallery webpage uses Javascript and since modern browsers refuse to render Javascript in HTML pages at local file system addresses (e.g. file:///) due to same-origin policy, the easiest solution is to make a simple webserver via python3:

$ python3 -m http.server -d ./my-gallery

Then, you can visit the my-gallery/index.html file via a local http:// address at http://localhost:8000/.

Summary

fgallery lacks many complex features (no image database, no metadata editing, no dynamic server processes for editing images, etc.). However, I'd argue its lack of features is the main feature. It just takes a directory of photos and spits out a directory you can plug into your hosting service. Updating the the gallery is just a matter of running the same $ fgallery photo-dir my-gallery command again and re-uploading.

Edit(2023-07-07T12:05+00): Clarify python3 commend.

TL;DR: fgallery is a dumb static web gallery generator: EXAMPLE, SETUP.

[-] msinfo32@lemmy.msinfo32.uk 2 points 1 year ago

This looks like the best option I've seen so far. Looks super easy to use. Thanks!

load more comments
view more: next ›
this post was submitted on 06 Jul 2023
18 points (90.9% liked)

Selfhosted

39677 readers
147 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS