dash-docs/img/dev/gifs
David A. Harding 1634212dd5
Dev Docs: Add P2P Messages That Request Or Reply With Data
Adds to the devel reference page detailed documentation on the following
messages: block, getblocks, getdata, getheaders, headers, inv, mempool,
merkleblock, notfound, and tx.

Adds to the devel examples page an example of requesting and parsing a
merkleblock message.

Adds to the devel docs overview pages links to the above two new
P2P sections.

Tweaks the autocrossref plugin ignore pattern to not crossref in the
middle of a GIF image name; this allows the inclusion of animated GIFs.
2014-11-12 12:39:36 -05:00
..
en-merkleblock-creation Dev Docs: Add P2P Messages That Request Or Reply With Data 2014-11-12 12:39:36 -05:00
en-merkleblock-parsing Dev Docs: Add P2P Messages That Request Or Reply With Data 2014-11-12 12:39:36 -05:00
README.md Dev Docs: Add P2P Messages That Request Or Reply With Data 2014-11-12 12:39:36 -05:00

Some Animated GIF Hints

An excellent set of background information can be found here:

http://www.imagemagick.org/Usage/anim_basics/
  1. Create source images. GraphViz supports direct GIF output, but its white background is not-quite-white and its transparent backgroud is hideous---so we output to PNG and then convert to GIF.

     for f in *dot ; do dot -o ${f/.dot}.png -T png $f ; done
    
  2. Create animated GIF using ImageMagick. Manually prefix first frame and suffix last frame to provide a brief pause in the animation on those frames. This wastes space but the optimization removes all of that wasted space except for 3 bytes.

     convert -delay 100 \
       en-merkleblock-parsing-001.gif \
       *gif \
       en-merkleblock-parsing-011.gif \
       -loop 0 \
       animated-en-merkleblock-parsing.gif
    
  3. Compress animated GIF (118 KB -> 15 KB in this example). You may need to play with color settings; 8 worked in this example but 4 was too few. Fewer colors (base-2) results in much better compression.

     gifsicle -b -O3 --colors 8 --no-background \
       animated-en-merkleblock-parsing.gif