Script Gallery

  • Description :

    The goal of this project was to create a script capable of creating a html gallery presenting the images and provide an option to archive the images.

    The script creates two folders and a html file with the gallery.

    The gallery has clickable images that expand on click.

    New images can be placed in the deposit folder and the gallery updated with the script.

    The newly created site can be automatically archived in a tgz file.

  • Technology and notions:

    Linux Bash,

  • Duration of the project :

    4 days

  • What I learned from this project:
    • Linux functions: Grep, mkdir, cat, find, loops, cases, tar, date formats

    • creating folders and modifying files with "mkdir" and "cat"

    • Finding elements in a file with "find" or "grep"

    • Archive files with "tar"

    • Resizing images with "resize"

Bash script

Feel free to check out the source code

The generated gallery

Placing the script

After running the script

After creating the archive