Screen capture your iPhone and save as a gif to embed in github. Inspired by https://gist.github.com/dergachev/4627207 : Pipe ffmpeg to gifsicle
brew install ffmpeg
brew install gifsicle
-
To record the screen to a .mov:
- Open QuickTime
- New Movie Recording
- Select a plugged in phone next to the record button
- Press the stop button in your system tray when done
-
& convert .mov -> .gif:
ffmpeg -i in.mov -vf "scale=min(iw\,600):-1" -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=7 --colors 128 > out.gif
- Drag and drop into your PR!