Whether you want to convert a JPG to PNG, make a PNG transparent, or simply create a new image as a PNG, there are many ways ...
Use the package manager pip to install texttoimage. If you want to use Chinese you can download or tell the convert function a font which can support Chinese. For example I download a font from google ...
Once a WCS solution for a camera has been fit, the forced_phot function can take an all-sky image along with it's WCS and a catalog of known stars to generate a transparency map.