Is it possible to use a different screenshot tool under Plasma?

flameshot and ksnip both work under Plasma.

I have a problem with spectacle which I have now fixed with flameshot, which can dump raw PNG (their words not mine) to stdout:

flameshot gui -r | pngquant - -o \
~/Pictures/Screenshots/scrsh_$(date +%Y%m%d_%H%M%S).png