<div dir="ltr">

<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Jerry,</span></p>

<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">You can’t just change a few bytes in an image file and be done
with it.  If you don’t want to use a module, then you’ll need to be well
versed in the various image file formats before you can ever start coding.
Otherwise you won’t know what bits to look for, much less what values to use to
get the change you are interested in. </span></p>

<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>

<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Matt</span></p>

</div><div class="gmail_extra"><br clear="all"><div>Matt</div>
<br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 4:16 PM, Jerry Kassebaum <span dir="ltr"><<a href="mailto:kassebaumj@hotmail.com" target="_blank">kassebaumj@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr">
<div><div>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?<br><br>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?<span class="HOEnZb"><font color="#888888"><br>

<div><p><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<br>
Jerry Kassebaum</span></p>
</div>
</font></span></div>


<br></div>                                    </div></div>
<br>_______________________________________________<br>
Dfw-pm mailing list<br>
<a href="mailto:Dfw-pm@pm.org">Dfw-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/dfw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/dfw-pm</a><br>
<br></blockquote></div><br></div>