I did something similar for cheap (insecure) desktop streaming a few years ago.<p>Roughly, use scrot (or similar screen capturing command line tool) to take a screenshot of the desktop and then encode it into a gif frame. Repeat once per second. Boom, your desktop is now a gif.<p>The main problem with this approach is that transmitting stuff via gif (low-color bitmaps, remember) is painfully slow even with modern internet.<p>That said, could probably be very useful in some instances!