Jan van den Berg

Corbin: static responsive image and video gallery generator

In classic yak shaving fashion; this weekend I created a static responsive image gallery generator.
It's onePHP file that -- when run from the command line -- generates a clean, fast and responsive (aka mobile friendly) video and image gallerywith navigation from a directory of images andvideos. The output is one single index.html file.

The generator itself is a single PHP file (~300 LOC). And running it on a sample folder with images and videos looks like this:

mintty_2021-11-22_19-33-42.png (904×1311) Notice it converts .mov files to .mp4 which are playable in the browser

The above generates one single index.html, that looks like this on a desktop browser:

Notice:

In the above example I use both the mouse and keyboard for navigation, both are possible.

Here you can look at the sample gallery yourself.

What does it do?

Here's what the generator does:

Why did I make Corbin?

Because it's fun, and because I was looking for a way to quickly share a folder of images and videos, with nice previews (i.e. thumbs), that also is viewable on a smartphone -- and that is not Google Photos. Most solutions can't do that.

Other things I wanted:

Corbin?

Yes, because:

What's next?

Corbin does what I need for now. Things that might be added later:

I know there are tons of solutions out there, but this one is mine. And it does exactly what I want.

Feel free to poke around! I assure you there are bugs.

favorites, photos, php, static-gallery-genrator, tech, tips

⬅ Previous post
Bloglife @ janvandenberg.blog

Next post ➡
The Beatles: Get Back