Here is a one-liner that has the makings of a glitch filter:
gmic repeat 6 sp done otsu , gradient_norm r2dx {max({0,h},{1,h})} autocrop_seq 0 a c,.5
Planet of the mandrills (tagline: dog saves the world)
What is David thinking about?
Issues
1. I don’t know how to save it with 3 channels while retaining the colour info.
2. Sometimes there is a bar at the bottom that I cannot crop because it isn’t fully black. E.g.,