[linux-elitists] netscape GIF loop fix

Rick Moen rick@linuxmafia.com
Sat Mar 11 10:04:43 PST 2000


Quoting Marc MERLIN (marc@merlins.org):

> Could anyone send me a copy?

Run this against the Netscape binary.  It changes the tags used to
recognise animated GIFs, with the effect of stopping animations after
their first cycle.  (Call the script "killanim", or such.)

I got this as a tip from Andrew Tridgell, of Samba fame.



#!/bin/sh

KILLSTRINGS="-e s/NETSCAPE2.0/DISABLEDXXX/g -e
s/ANIMEXTS1.0/DISABLEDXXX/g"
FILE=$1

if [ ! -f $FILE ]; then
  echo 'killanim FILENAME'
  exit 1
fi

sed $KILLSTRINGS $FILE > $FILE.new &&
mv $FILE $FILE.orig &&
mv $FILE.new $FILE
chmod +x $FILE





More information about the linux-elitists mailing list