qdgal — a quick & dirty PHP photo gallery

Copyright © 2017-2026 Mateusz Viste

Screenshot of a qdgal photo gallery

Why?

I built qdgal for myself: I wanted a dead-simple way to share a few photos with family. Every gallery package I tried was too heavy. I needed something minimal — no database, no stack of PHP dependencies, no maze of settings — with a clear interface that older relatives could use without fuss. One summer afternoon I wrote a short script, and qdgal was born. Optional password protection, video support, and custom styling came later.

How?

Copy index.php, qdconf.php, qdlang.php, and qdgal.css into the directory that holds your photos on the web server. That is enough to get started.

Edit qdconf.php and qdgal.css if you want to change titles, sorting, thumbnails, or look. To caption a photo, add a text file with the same base name (for example photo.txt next to photo.jpg).

Dependencies

- PHP 5.6+ (7.4+ or 8.x recommended)
- php-gd (only if you enable thumbnails)
- exif (optional; recommended so JPEG orientation is correct)

License

qdgal is released under the MIT license. You may use, modify, and share it freely.

Download