How do I convert this Unix script for ImageMagick to Windows? Is there a tool or software does this?
cd
cd desktop/test1
# resize webp image and save as png
magick ( image.webp -resize x1080 ) image.png
# extract and save each frame of animated gif
magick output.gif +adjoin ../test2/out_%03d.gif
# do FOR loop setting the frames with each loop number added to 1000 so that have alphabetically sequential images
i=0
for img in ../test2/out_*.gif; do
j=$((i+1000))
echo "$i $j $img"
# append images and save in test3
magick image.png $img +append ../test3/anim_$j.gif
i=$((i+1))
done
# take all images in test3 and create the output animated gif
magick -dispose background -delay 10 ../test3/anim_*.gif -loop 0 animation.gif
New contributor
user1897354 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.