Reduce Spaces Stored Image Sizes
2023-04-16 - ~1 Minute
Ok, I get the sense that constantly pulling enormous digital images from DigitalOcean Spaces to rebuild this blog is unnecessarily chewing up lots of bandwidth. Today I’d like to begin fixing that by creating a utility, probably in Python, to grab all those images one-by-one, make a smaller copy of each, and put those copies back into a web-ready
subdirectory in Spaces, or something like that.
There’s a wealth of probably pertinent information to be had in https://docs.digitalocean.com/reference/api/spaces-api/ . Unfortunately, Spaces isn’t compatible with DO’s own command line utility, doctl , but it is compatible with s3cmd and the link I’ve provided documents how to get started with that. 🙂
Update: See
Engaging s3cmd
to Download and Resize Images from DO Spaces
for my solution.