Rolling images using ImageMagick

brew install imagemagick

More download links can be found here:
https://imagemagick.org/script/download.php

2. Create a file, for example: “script.sh” and add the following to it:

#!/bin/bash
DIR=$(dirname "$0")
mkdir $DIR/Results/

for FILE in $(ls $DIR);
do convert $DIR/$FILE -alpha set \( +clone -distort DePolar 0 -virtual-pixel HorizontalTile -background None -distort Polar 0 \) -compose Dst_In -composite -trim +repage $DIR/Results/${FILE%.*}.png;
done

❗️Don’t forget to make it executable using: chmod +x script.sh

3. Share your helpful scripts in the comments! 🎉

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store