screengif dev notes
===================

## Building the gem

See [vagrant-vbox-manage/DEVNOTES.md](https://github.com/dergachev/vagrant-vbox-snapshot/blob/master/DEVNOTES.md)

```
gem build screengif.gemspec
gem install screengif-0.0.1.gem
screengif -i=demo.mov -o demo5.gif
```

### Related solutions

* http://freezeframe.chrisantonellis.com/ (js library to freeze/play gifs)
* http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast

### RMagick

* http://railscasts.com/episodes/374-image-manipulation?view=asciicast
* http://ruby.bastardsbook.com/chapters/image-manipulation/
* https://github.com/markandrus/imgswiss/blob/master/pipeline.rb (ffmpeg -> imagemagick via rmagick -> gif)

* http://www.imagemagick.org/RMagick/doc/info.html#format
* http://www.imagemagick.org/RMagick/doc/draw.html#rectangle
* http://www.imagemagick.org/RMagick/doc/constants.html#GravityType
* http://www.simplesystems.org/RMagick/doc/optequiv.html
* http://www.imagemagick.org/RMagick/doc/ilist.html
* http://www.imagemagick.org/RMagick/doc/clip_path.rb.html (define_clip_path example)

### Imagemagick

* http://www.imagemagick.org/Usage/draw/
* http://www.imagemagick.org/Usage/anim_opt/
* http://www.imagemagick.org/Usage/transform/#fx
* http://www.imagemagick.org/Usage/layers/
* http://www.imagemagick.org/script/command-line-options.php#delete
* http://www.imagemagick.org/script/fx.php
* http://www.imagemagick.org/script/escape.php
* http://www.imagemagick.org/Usage/annotating/#watermarking
* http://www.imagemagick.org/Usage/anim_mods/#frame_mod
* http://www.ioncannon.net/linux/81/5-imagemagick-command-line-examples-part-1/

## Bash guides

* http://andreinc.net/2011/09/04/bash-scripting-best-practice/
* http://stackoverflow.com/questions/242538/unix-shell-script-find-out-which-directory-the-script-file-resides

## Ruby guides

* TODO: implement tests; see https://github.com/pgericson/progress_bar/blob/master/test/arguments_test.rb
* TODO: look at mixlib-{shellout,cli,logger}; https://github.com/opscode/mixlib-shellout
* TODO: look at https://github.com/bitboxer/simple_progressbar/blob/master/lib/simple_progressbar.rb
