A simple webpage to display all images in a folder. It requires PHP.
Images will display up to a max width of 900 pixels. Images larger than 900 pixels will show their full size if you click it.
You can link to a specific image as they're link anchored. Just click on the specific image and copy the browser URL.
This works out of the box, so you can either Git clone the repository, or download the zip.
Add ins-imgs.php
and ins-imgs.css
in your root folder (or wherever your index file is).
In your index HTML, insert this:
<!-- insert images here -->
<script src="ins-imgs.php"></script>
In ins-imgs.php
you can find the following settings:
# Path to image folder
$imageFolder = 'img/';
# Show only these file types from the image folder
$imageTypes = '{*.jpg,*.JPG,*.jpeg,*.JPEG,*.png,*.PNG,*.gif,*.GIF}';
# Set to true if you prefer sorting images by name
# If set to false, images will be sorted by date
$sortByImageName = false;
# Set to false if you want the oldest images to appear first
# This is only used if images are sorted by date (see above)
$newestImagesFirst = true;
Make the changes needed for your setup.
Very welcomed.
Easy Folio (Demo) by Lukas Spieker