Website with display my photos.
./
ββββassets # Code for the main site
| | # -----
β ββββimg # Favicon + Profile Picture
β ββββ ... # Other Code
|
ββββmedia # Images generated by thumbsup
| | # -----
β ββββlarge # Compressed, full sized images - used in both galleries
β ββββsmall # Small sized images - for thhumbsup only
β ββββthumbs # Extremely small image resolution - for thhumbsup only
|
ββββoriginal_photos # High Quality original photos.
| # Not used anywhere. Used to generat thhumbsup images
|
ββββpublic # Code for thhumbsup
| # -----
...
- Download and install these:
π₯ Setting up thumbsup
- Install
thumbsup
witn npm, globally.
npm install -g thumbsup
-
Download GraphicsMagick (Installer) and install it.
-
Download exiftool (Windows Executable), extract it and copy it to a folder.
-
Add both of these folders to System PATH (GraphicsMagick installation folder and the folder which has our
exiftool.exe
)
-
Copy your high quality images into
./original_photos
- You may compress it with File Converter
- All images should be in
.jpg
-
Run the command below
thumbsup --input ./original_photos --output ./gallery --theme cards --index quick.html --title "Hirusha Adikari | Photography" --footer "Copyright Β© 2021-2024 Hirusha Adikari" --albums-output-folder "albums" --albums-from %path
-
The newly compressed images and the other thumbsup files will be generated inside
./gallery
-
Rename
./gallery/index.html
to./gallery/quick.html
-
Move and replace everything from
./gallery
to./
-
Run the
gallery.py
file, to update the gallery of my main sitepython gallery.py
-
Test with a local server, for example using VSCode Live Server.
-
Commit and push changes to your GitHub repository, and wait for GitHub Pages to update the live site.
- Open a terminal and run the following commands to install the necessary tools:
sudo apt-get update sudo apt-get install python3 nodejs npm -y
π₯ Setting up thumbsup
-
Install
thumbsup
with npm, globally.sudo npm install -g thumbsup
-
Install GraphicsMagick:
sudo apt-get install graphicsmagick -y
-
Install exiftool:
sudo apt install exiftool -y
-
Copy your high quality images into
./original_photos
- You may compress them using tools like File Converter (Windows Only) or any other tools.
- Ensure all images are in
.jpg
format.
-
Run the following command:
thumbsup --input ./original_photos --output ./gallery --theme cards --index quick.html --title "Hirusha Adikari | Photography" --footer "Copyright Β© 2021-2024 Hirusha Adikari" --albums-output-folder "albums" --albums-from %path
-
The newly compressed images and other thumbsup files will be generated inside
./gallery
. -
Rename
./gallery/index.html
to./gallery/quick.html
:mv ./gallery/index.html ./gallery/quick.html
-
Move and replace everything from
./gallery
to./
:mv ./gallery/* ./
-
Run the
./gallery.py
file to update the gallery on your main site:python3 gallery.py
-
Test with a local server, for example using VSCode Live Server.
-
Commit and push changes to your GitHub repository, and wait for GitHub Pages to update the live site.
Licensed under the MIT License