shoutout to @clip for prompting me to update this script - I use it to convert my VRChat photos from very large 3840×2880 PNGs into much smaller 3840×2880 HEIF files (which to my eye are nigh indistinguishable in quality), while preserving their original creation date and time, to import into Apple Photos
this update takes it from processing a set of 69 PNGs (nice) totalling about 650 MB in 19 seconds sequentially to 4½ in parallel on my machine!
I originally spent a bit of time trying to work out how to make GNU Parallel call a shell function, but I realised I could just… make the script call itself via GNU Parallel!
plus it still works if you don't have parallel, it just does it the old way. going to have to see what other batch operations I can upgrade like this… 🤔