My static photo gallery on GitHub

Cool! I’ll love to see your project as it comes together.

I should have also said that if one does not want to mess with node-js and gulp just to resize the images, I made a simple bash script using imagemagick to do the same:

#!bin/bash
mogrify *.jpg -quality 75 -resize 512x512 -path ./thumbs *.jpg
mogrify *.jpg -quality 75 -resize 2048x2048 -path ./fulls *.jpg
mv *.jpg hires/

Just place your images in ./images and execute the script from that same directory. Then add, commit, and push changes as usual. :wink:

3 Likes

Hi, @Isaac. I forked today your github, but something is not right.
Impressing Light by Darko here I can’t see thumbnails, but if you click, images show.
Obviously images are in the right places and were converted with your nice script.

Have you something to suggest?

Edit: nevermind. I figured. No space on image’s name

Hi Dario, actually I had the same problem and then eventually discovered that it is some sort of discrepancy between my script and the sizing and format expected by the site code. Instead I used the little node-js tool made by the guy who originally designed the code and it works fine.

1 Like

Thank you for your reply.
I solved just changing spaces with underscore.
I’ll try later node.js as you suggested.

1 Like

Aha! It could have been as simple as that! It was a while ago that I last messed with the code…

1 Like