A simple web-app gallery for desktops, iOS, and Android.
This gallery takes a set of supplied source images and videos in any folder structure you already have and generates small thumbnails, medium sized web images, and HTML5 ready mp4 videos for display in a Progressive Web App.
The best way to install is to use the docker image from the Docker Hub (https://hub.docker.com/r/nowsci/nowgallery/).
docker pull nowsci/nowgallery
With the following docker compose:
nowgallery: image: nowsci/nowgallery container_name: nowgallery ports: - 80:80 volumes: - ./nowgallery/images:/webimages - ./nowgallery/nowgallery.conf:/etc/nowgallery.conf - /storage/Pictures:/sourceimages:ro restart: always
This would create the
nowgallery.conf file, and once a scan is run, store any rendered thumbnails, medium sized images and HTML5 ready video renders into
./nowgallery/images based on existing source images and videos in
After you start the container, you can go back and edit
./nowgallery/nowgallery.conf to change settings, though this should not be needed.
If you wish to manually install on a system like Ubuntu, you can use the following commands on a system that has Apache and PHP installed. If you wish to use paths other than
/sourceimages you can edit
apt-get update apt-get install -y ffmpeg git libmagickwand-dev --no-install-recommends pecl install imagick && docker-php-ext-enable imagick cd /tmp git clone https://github.com/Fmstrat/nowgallery.git cd nowgallery cp -a html/* /var/www/html/* mkdir /webimages ln -s /path/to/your/source/images /sourceimages cp config/nowgallery.conf /etc/nowgallery.conf mkdir /scripts cp -a scripts/* /scriptes/
This will create thumbnails, mid-sized images and rendered videos. Run once the container is active.
docker exec nowgallery php /scripts/scan.php
Setting username/password for Web-app
Run once the container is active.
docker exec -ti nowgallery php /scripts/user.php
Using as a Progressive Web App
For Android/Chrome, here is an easy guide to Add to Homescreen: https://www.maketecheasier.com/add-chrome-bookmarks-android-home-screen/
For iOS/Safari, use: https://www.imobie.com/support/add-bookmark-to-iphone-home-screen.htm