NanoGal is fork of [MinigalNano](https://github.com/sebsauvage/MinigalNano) and MinigalNano is based on [Thomas Rybak's](http://www.minigal.dk/minigal-nano.html).
Why fork ? Because I love understand and adapte application for my usage.
NanoGal is a very simple image gallery. It adheres to the KISS principle and is very easy to install. NanoGal does not have a web admin interface: You just upload your images in the photo folder on your server (using FTP, SFTP...). It only requires php and GD (no database, no special libraries like PEAR or ImageMagick).
NanoGal uses a javascript [gLightBox](https://github.com/biati-digital/glightbox), but it degrades gracefully if javascript is disabled.
## Features
- Very simple media gallery
- Use cache for increase speed
- Thumb are gen and cache (WEBP)
- Can read Exif
- Use the organization of your file hierarchy
- You can add text for gallery (dir) or/and for file (use Markdown format)
- Support for PNG, GIF, JPEG, WEBP, BMP image formats
- Support for OGV, MP4, WEBM video
- Javascript lightbox, degrades gracefull if JavaScript is disabled
- Can be customize with CSS (over charge actual theme) or create your theme
## Installation
### Docker
For the moment I don't provide any image in any hub.
- Requires `php` (8 or higher) and two extension `php-gd` and `php-mbstring`.
- Place all the files in a directory on your server.
- Configure your web server to serve `public/` directory.
- Upload your photos to the `photos/` subdirectory.
- That's all.
## Usage
### WARNING
When you upload your file, some data are share, particularly [Exif data](https://en.wikipedia.org/wiki/Exif). Exif data can expose the GPS coordinates of where the photos/videos were taken. This may not be what you want.
If you want, you can delete this data. Under GNU/Linux you can install `exiftool`. In the `bin` directory you have bash script (`remove_gps_datas.sh`) for remove this data in all file present in your gallery. USE AT OUR RISK.
If you change the thumbsize, thumbnails are not re-create. If the difference between older and newer size are small, I think you don't need regen all thumb. But if you prefer, you can delete `cache/thumbs/*` for force re-create thumbnails.
Original Idea by [SebSauvage](https://sebsauvage.net/wiki/doku.php?id=minigal_nano#gerer_votre_gallerie_avec_nextcloud) in french.
If you have NextCloud installed on your server, you can use it to manage your NanoGal gallery. It's very convenient for uploading images, renaming them, moving them, and organizing them into folders.
In the NextCloud settings: Settings > Administration > External Storage:
More info about external storage in [Nextcloud admin documentation](https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/external_storage_configuration_gui.html).
The same idea can be use with another sync tool of course.