[DFW.pm] Changing colors in a gif using cgi

Brent LaVelle brentlavelle at yahoo.com
Tue Jan 8 14:27:45 PST 2013


Perl reads and writes non-text files.  To deal with this data in hex look at pack and unpack.


________________________________
 From: Jerry Kassebaum <kassebaumj at hotmail.com>
To: dfw-pm at pm.org 
Sent: Tuesday, January 8, 2013 4:16 PM
Subject: [DFW.pm] Changing colors in a gif using cgi
 

 
How can I use Perl to read a non-text file in hex, change a few individual bytes, and write it back? Would this work to change a gif or png, or would I have to go down to binary?

I appreciate the ImageMagic answer I received before, and may have to resort to that, but I would prefer to work with pure Perl without loading a module. Surely there is a simple way to read/write a file byte by byte?


Jerry Kassebaum

_______________________________________________
Dfw-pm mailing list
Dfw-pm at pm.org
http://mail.pm.org/mailman/listinfo/dfw-pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/dfw-pm/attachments/20130108/c10848fd/attachment.html>


More information about the Dfw-pm mailing list