#!/usr/bin/perl ##### Time-stamp: "2005-08-19 01:43:16 ADT" sburke@cpan.org # desc{ display the comment-blocks of GIF files } # # list_gif_comments v1.0 # This program displays the contents of comment blocks of GIFs # specified on the command line. # It dumps these comments on STDOUT, each comment terminated by # a form-feed character. # Any warnings will be emitted on STDERR, as necessary. # # Author: # Sean M. Burke, sburke@ling.nwu.edu, http://www.ling.nwu.edu/~sburke/ # Copyright 1997- by Sean M. Burke. # # Note: # This program performs no charset conversion or endline translations # on content of the comment blocks. The GIF89 standard has no # recommendations about character sets or enline formats. # # Example usage: # list_gif_comments.pl mystery_pic.gif | less # # Revision notes: # v1.0, 1997-08-04. This is basically a chop-job on "Daktari GIF", # my well-known and beloved GIF debugger. Also look for my # "add_gif_comment" program. # # Availability & Copying: # # list_gif_comments is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, or # (at your option) any later version. # # list_gif_comments is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # To see a copy of the GNU General Public License, see # http://www.ling.nwu.edu/~sburke/gnu_release.html, or write to the # Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ###################################################################### unless (@ARGV) { # nothing to do. give help. print <