Recently I’ve written a review on a PR where I requested that we used the Obsidian icon from the source. However this icon is only available as an svg file with a transparent background. So I suggested that we used imagemagick to add the background to the image because we already used it in the derivation. This task is however not as trivial as it first might seem. The PR with the discussion can be found here.
To add the background to the image I came up with the following solution:
|
|
In the solution X and Y denotes the size of the output image.