I got the same spam as described in
http://thread.gmane.org/gmane.mail.spam.spamassassin.general/88481

So I just wrote a little program which
- examines a GIF animation and stores its size
- stores delay time, size, left offset, and top offset of each single frame
- calls gifasm to extract the single frames
- calls giftopnm to convert them into PNM files
- creates one empty PNM according to the size of the GIF file
- copies the content of each single PNM file according to its offsets
  into the empty PNM file
- stops working if the delay time is much bigger then the previous ones
- saves the PNM file

After that I got a PNM file which looks exactly like the GIF animation
when it has finished to move. This PNM file can be passed to GOCR and
converted into plain text with good results.

If you are interested, I would post the source code here.
(But be warned, it is my second C++ program and you probably 
will find my quick-and-dirty programming style rather awful.)


Paul Lenz


Reply via email to