I'm looking into creating a static website using something like Hugo or Jekyll that has about 1GB of images hosting on something like Netlify:
- For each image, I want to automatically generate mobile, tablet and desktop sizes, and also optimise each image with tools like pngcrush.
- I want an easy to use CMS interface like Netlify CMS to edit content.
- Deploys should be fast. Correcting a typo and having the fix deployed shouldn't take long.
What approaches are there to doing the above where image generation doesn't slow everything down? Can generated images be cached somehow between builds? Can generated images be automatically committed to Git somehow when a new image is uploaded? Is it better to use a web service to generate and serve the optimised images on demand?
The python script cropped, resized and optimized images.
Hugo generated a simple image site with an API-like url schema that could be consumed by my main, also Hugo, site using the getJSON function.
Do the images change frequently, or is the situation more one and done?