terminal에서 이미지들을 gif나 mov으로 변환하기

a0.jpg ~ a60.jpg를 animation.gif나 animation.mov로 변환하고 싶을 때는 어떻게 하면 될까?

convert -delay 5 -loop 0 a*.jpg animation.gif
convert -delay 5 animation.mov

사용법은 이렇게 간단하지만 imagemagick이라는 플러그인과 ffmpeg라는 플러그인이 필요하다.
아마도 저 명령어를 했을때 에러가 난다면 없을 가능성이 높은데, 없다면 brew를 이용해 설치할 수 있다.

brew install imagemagick
brew install ffmpeg

brew가 없다면 검색해서 brew를 설치하도록. 이상.

참고포스팅

Convert an image sequence to a movie
Creating Animated GIFs from the Command Line in Mac OS X Using Convert

more 1. animation gif나 mp4를 업로드 할 수 있는 공유 사이트

Gfycat

Tags : #terminal