Starbeamrainbowlabs<p>Wanna make a tiny planet from an image with imagemagick? That's easy:</p><p>`magick IN.png -distort arc 360 OUT.png`</p><p>Wanna blend the 2 sides together? That's MUCH harder........</p><p>`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;`</p><p>(WARNING: uses `tmp.png` as a temp image)</p><p>Still want to try and get rid of the dark banding around the blend but it's at least better than a seam line.</p><p>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?</p><p><a href="https://fediscience.org/tags/imagemagick" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>imagemagick</span></a> <a href="https://fediscience.org/tags/bash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bash</span></a> <a href="https://fediscience.org/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://fediscience.org/tags/ImageEditing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ImageEditing</span></a> <a href="https://fediscience.org/tags/TinyPlanets" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TinyPlanets</span></a></p>