Skip to content

Commit

Permalink
Merge pull request #7 from ruzickap/feature/doc_fix
Browse files Browse the repository at this point in the history
Improve documentation
  • Loading branch information
kensanata committed Feb 28, 2018
2 parents fbd78e9 + 1ebcb13 commit cf70e20
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions README.rst
Expand Up @@ -95,15 +95,7 @@ Install with::

**Docker**

You can also try the latest ``fgallery`` bundled with `facedetect <https://www.thregr.org/~wavexx/software/facedetect/>`_ in a Docker container:

Build docker file::

docker build -t fgallery .

Run the docker image build previously:

To use this image, just do::
You can also try the latest ``fgallery`` bundled with `facedetect <https://www.thregr.org/~wavexx/software/facedetect/>`_ in a Docker container::

# Set the initial environment variables
SOURCE_DIRECTORY="$HOME/mypictures/album1"
Expand All @@ -115,10 +107,10 @@ To use this image, just do::
-rw-r--r-- 1 user user 733873 Feb 4 2003 /home/user/mypictures/album1/20030204-222819.jpg

# Generate gallery with face detection enabled
docker run --rm -it -u $(id -u):$(id -g) -v "$SOURCE_DIRECTORY":/mnt:ro -v "`dirname $DESTINATION_DIRECTORY`":/destination fgallery /mnt /destination/`basename $DESTINATION_DIRECTORY`-1 -f -j $(nproc)
docker run --rm -it -u $(id -u):$(id -g) -v "$SOURCE_DIRECTORY":/mnt:ro -v "`dirname $DESTINATION_DIRECTORY`":/destination kensanata/fgallery /mnt /destination/`basename $DESTINATION_DIRECTORY`-1 -f -j $(nproc)

# Generate gallery with face detection enabled, slim output (no original files and downloads), maximum full image size (1920x1080) and do not generate a full album download
docker run --rm -it -u $(id -u):$(id -g) -v "$SOURCE_DIRECTORY":/mnt:ro -v "`dirname $DESTINATION_DIRECTORY`":/destination fgallery /mnt /destination/`basename $DESTINATION_DIRECTORY`-2 -s -d -f -j $(nproc) --max-full 1920x1080
docker run --rm -it -u $(id -u):$(id -g) -v "$SOURCE_DIRECTORY":/mnt:ro -v "`dirname $DESTINATION_DIRECTORY`":/destination kensanata/fgallery /mnt /destination/`basename $DESTINATION_DIRECTORY`-2 -s -d -f -j $(nproc) --max-full 1920x1080

(Thanks to: https://github.com/skorokithakis/docker-fgallery and https://github.com/pank/docker-fgallery)

Expand Down

0 comments on commit cf70e20

Please sign in to comment.