A simple web-app gallery for desktops, iOS, and Android
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PSDs
config
html
screenshots
scripts
.gitignore
Dockerfile
README.md
init.sh

README.md

nowGallery

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.

Install

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 /storage/Pictures.

After you start the container, you can go back and edit ./nowgallery/nowgallery.conf to change settings, though this should not be needed.

Manual install

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 /webimages and /sourceimages you can edit /etc/nowgallery.conf.

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/

Scanning images

This will create thumbnails, mid-sized images and rendered videos. Run once the container is active.

docker exec nowgallery php /scripts/scan.php

or

php /scripts/scan.php

Setting username/password for Web-app

Run once the container is active.

docker exec -ti nowgallery php /scripts/user.php

or

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