Adding a colored aura around an image
Posted: 2019-08-31T14:23:29-07:00
I am currently trying to add an aura around an image using magick. Here is the test image I am using as the input
I have a somewhat working solution at the moment using this command:
However, it only produces a gradient grayscale aura
I have two questions.
How would I go about specifying the color of the aura?
Would there be a way to change the gradient color of a part of the image dynamically based on the color of the border pixel? I.e the aura is red when coming out a red book and blue when coming out a blue book?

I have a somewhat working solution at the moment using this command:
Code: Select all
magick -limit thread 1 books.png books.png ( +clone -alpha extract -blur 0x50 -fill Yellow -level 0,50% -background Yellow -alpha Shape +write g.png ) -compose DstOver -composite -background "transparent" -compose over -layers flatten out.png
However, it only produces a gradient grayscale aura

I have two questions.
How would I go about specifying the color of the aura?
Would there be a way to change the gradient color of a part of the image dynamically based on the color of the border pixel? I.e the aura is red when coming out a red book and blue when coming out a blue book?