Wanna make a tiny planet from an image with imagemagick? That's easy:
`magick IN.png -distort arc 360 OUT.png`
Wanna blend the 2 sides together? That's MUCH harder........
`in="IN.png"; w="$(magick identify -format '%w' "${in}")"; h="$(magick identify -format '%h' "${in}")"; magick "${in}" -gravity east -crop "$((w/20))x${h}+0+0" \( -size "${h}x$((w/20))" gradient:white-transparent -rotate 90 \) -alpha set -compose xor -composite \( "${in}" -gravity west -crop "$((w/20))x${h}+0+0" \) -compose dst-over -composite \( "${in}" -gravity center -crop 90%x100%+0+0 \) +append -strip tmp.png; magick tmp.png -distort arc 360 OUT.png; rm tmp.png;`
(WARNING: uses `tmp.png` as a temp image)
Still want to try and get rid of the dark banding around the blend but it's at least better than a seam line.
Imagemagick didn't like `-distort` after `+append` for some reason...... I think it's some kinda global image offset that `-strip` only fixes during saving?