Pizza Album
This is some quick code that allows me to easily maintain dunlop.pizza. I can add an image to an iOS photos album and have it added to a static html page.
Set Up
- Copy
config_example.js
toconfig.js
and set the secret - Use ifttt New photo added to album Trigger from the iOS Photos Channel
- Use ifttt to make a web request from the Maker Channel
- Set the URL to point to his app
- Set the Content Type to json and set the body to
{"date":"{{TakenDate}}","photo_url":"{{PublicPhotoURL}}","secret":"<<insert your own secret here>>"}
- Adjust
template/index.html
andpublic/style/base.css
as apprpriate
Notes
- graphicsmagick needs to be installed
- All photos are converted to square
- Photos get a white border drawn in them
- Original photos are kept so that they can be reprocessed if needed