Giter Site home page Giter Site logo

quickgallery's Introduction

Gallery

This is the script I use for my website's image gallery right now. Rather than using some sort of cms to handle images I just place (any number of) new images in my directory and it'll add them to my gallery page. I made a video on it here, explaining how to use it and how it works.

Dependancies

Make sure you've got imagemagick and sed on your machine.

General usage

Just place your image files in an "images" directory at the root of your website and make sure images.html has a comment: <!-- gal --> where you want the gallery to start. Run the script in the root directory of your site and it'll prompt you for a caption for each image, I may add in a feature that shows you each image as it asks for the caption, making it easier to remember which is which when adding in batches, but for now I've left this out since I know people use different image viewers. After you've given each a caption, the images will be added to your images.html file as thumbnails. You can run this script locally if you're running GNU/Linux on your desktop, or you can run the script on your vps, either will work just fine as long as you have imagemagick installed.

Customising the image tag

If you want to change the html for each image you add, you'll have to do that manually. This can be done by editing the sed command in the script. Be sure to remember to escape characters since we're using " insead of '.

quickgallery's People

Contributors

billygtcarlyle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.