diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-12 14:54:32 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-12 14:54:32 +0100 |
| commit | d0efaea49fb1dd04786881cb0ff0a48bdf64cda2 (patch) | |
| tree | e6be19aabd648e80a383d76a32a3b80b21a95c4d | |
| parent | 769dcb273179dfc4dcd3ad363c6490f1e1bfb517 (diff) | |
make-equirectangular.sh
| -rw-r--r-- | make-equirectangular.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/make-equirectangular.sh b/make-equirectangular.sh new file mode 100644 index 0000000..8497275 --- /dev/null +++ b/make-equirectangular.sh @@ -0,0 +1,13 @@ +for i in *.png + do + echo $i + convert $i -crop 3x2@ +repage +adjoin tile-%d.png + convert tile-3.png -rotate 270 tile-3a.png + convert tile-4.png -rotate 270 tile-4a.png + convert tile-5.png -rotate 270 tile-5a.png + cube2sphere tile-1.png tile-4a.png tile-0.png tile-2.png tile-5a.png tile-3a.png -r 2048 1024 -fPNG -o"sphere" + convert sphere0001.png -crop 2048x835 -resize 1024x512\! sphere.png + mv sphere-0.png "equi/$i" + rm sphere* tile* + done + |
