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

Jerry Kassebaum kassebaumj at hotmail.com
Tue Jan 8 14:16:29 PST 2013


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





 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/dfw-pm/attachments/20130108/e88fe0c2/attachment.html>


More information about the Dfw-pm mailing list