<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
How do I change colors in a gif using cgi or perl? In other words how do I read a file in binary or hex, change some bits or bytes, and write it back?<br><br>A very simple file is attached if you want to use it.<br><br>My long-term goal is to start with all black, then blacken every color except, say, a00000 to afffff, then everything except, say, 200000 to 2fffff AND  a00000 to afffff, etc., until the user can guess what the picture is.<br><br>Jerry Kassebaum<br>                                    </div></body>
</html>