On macOS, I wanted to be able to paste HDR HEIC screenshots straight into GitHub in Safari and have them get converted automatically to these HDR-capable formats. Normally, when you switch Screenshot.app to HDR, paste to GitHub stops working.
I put together this Hammerspoon spoon with a few brew libraries and some inline Swift code.
You paste twice quickly to trigger it, and you can iterate formats with a keystroke. https://gist.github.com/thadk/8b178aa93dafcab92ca579825f8191...