A quick one… I recently wanted to trim the black borders around a video screenshot. While I could use an image editor to manually select and trim, I wondered if there was an imagemagick trick somewhere out there for such a thing… and of course there was: magick convert -fuzz 3% -define trim:percent-background=0% -trim +repage path/to/input.png path/to/output.png Pretty neat. It does the job, but I won't remember it next time. May as well make another dwim-shell-command function out of it ...