fmw42 wrote: ↑2019-08-31T23:34:25-07:00You can do that sort of using distort depolar/polar combination (cartesian to polar and polar to cartesian).
Working from your idea of spreading the colors outward from the image, I came up with a few ways to create an aura or halo effect using some other standard IM operations.
Method 1...
Code: Select all
magick books.png -background none ^
( -clone 0,0,0,0 -motion-blur 0x10+%[fx:t*90] -blur 0x10 ) ^
-reverse -layers merge out1.png
This first method clones the input image four times, then does a motion blur with each clone blurring a different 90 degree direction. It finishes by merging the original input image over those four directionally blurred layers. This is very slow. If you make the motion blurs just to the left and right with only two clones like "-clone 0,0 -motion-blur 0x10+%[fx:t*180]", it will still be very slow.
Method 2...
Code: Select all
magick books.png -background none ^
( -clone 0 -virtual-pixel none -distort SRT "1.1 0" -blur 0x10 ) ^
-reverse -layers merge out2.png
This second method also clones the input image, but then scales it up by 10% and blurs that. It finishes by merging the original input over that enlarged and blurred clone. You'll get a denser result by making more clones like "-clone 0,0,...".
Method 3...
Code: Select all
magick books.png -background none ^
( -clone 0,0 -spread 20 -blur 0x10 ) -reverse -layers merge out3.png
The last method clones the input image, then does a "-spread" operation on it to feather out the edges. It blurs the result and finishes by merging the input image over the spread and blurred layer(s). Increase the density of the result by adding more clones with "-clone 0,0,0,...".
The first method will only work on IM v7 because of the inline FX calculation. The other two should work with IM v6 just by changing "magick" to "convert".
These commands are in Windows syntax. For a *nix system you'll need to replace those continued line carets "^" with backslashes "\", and escape the parentheses "(...)" with backslashes "\(...\)".