Tool to
- (1) convert png to dark mode without losing color hue;
- (2) convert pdf to png and remove the extra empty space
pdf2png pdf1 pdf2 ...
png2dark png1 png2 ...
Requires ImageMagick command-line tool (https://imagemagick.org/script/command-line-tools.php) and ghostscript command-line tool (https://ghostscript.com/docs/9.54.0/Use.htm)
Download the script and change the permission.
chmod +x pdf2png
chmod +x png2dark
Then put it in your path like /usr/local/bin