Spectral K-edge subtraction imaging and wide-field energy-dispersive X-ray absorption spectroscopy imaging are novel, related, synchrotron imaging techniques for element absorption contrast imaging and element speciation imaging, respectively. These two techniques serve different goals but share the same X-ray optics principles with a bent Laue type monochromator and the same data processing algorithms. As there is a growing interest to implement these novel techniques in synchrotron facilities, Python-based software has been developed to automate the data processing procedures for both techniques. In this paper, the concept of the essential data processing algorithms are explained, the workflow of the software is described, and the main features and some related utilities are introduced.