Adding a background color to a transparent image
For a previous article, linear regression and least square method, I generated a few PNG images using inkscape. Those images had a transparent background, and when I tried to add them to the dark themed version of the blog, it was impossible to distinguishing anything.
In GNU/Linux, it is possible to use the command line interface to add a color. Here the recipe:
magick image-transparent.png -background white -alpha remove -alpha off image-white.png