Trimming video screenshots

from blog lmno.lol @alvaro, | ↗ original
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...