I found such a program, I do not know, maybe it will help with something?
https://sourceforge.net/projects/pitchblack-twrp/files/
The most recent version at the moment:
https://sourceforge.net/projects/pitchblack-twrp/files/beryllium/PitchBlack-beryllium-2.9.0-20190705-1053-OFFICIAL.zip/download