I'm find it impossible to do this at the moment, and I need to do so, because I was surprised to find that SC card I'd built on is just about the max possible for 16G, so the image won't fit on any others of that nominal size :(
The PiShrink utility seems to do the compression, but the image doesn't work when put on another card.
I'm wondering if it has anything to do with the fact that this is a devuan beowulf build not debian. Just to make it more 'interesting' I can no longer find the image I originally got off the 'net :(
If I ever get to recover this, I'll find an 8G card for the reference build!