With visual testing we occasionally need to debug images in CI environments. We were previously using Imgur's v1 API:
https://github.com/twolfson/twolfson.com/blob/3.102.0/test/perceptual-tests/upload-screenshots.sh
but that's been shutdown and v2 and v3 seems like they need login for uploading images. We don't like that since these are rarely setup and we don't want to associate development content with personal content.
Thankfully Imgur supports uploading images via the browser without logging in. After trial/error, we got the following script for uploading a single image:
#!/usr/bin/env bash