I get the following output after running the code for a picture
[1459]./image_info.pl lah.png
$VAR1 = {
'width' => 206, 'file_media_type' => 'image/png',
'file_ext' => 'png',
'PNG_Chunks' => [
'IHDR',
?V?????O?H??^#?C&?fu?M?5V??m6???M?s',
'IEND' 9 :˺??:?E??(;t??[/????o?4?4?O??TܲD
#PJ?EHͨ??ƥ8???#u ?t??1?I/=?!w"???)?,??????X?|?{ M?N??A? V``?&?
{8.?"???I)?W?_??|k?.c??l??s?8?~^Z??????_;?,,+,/?4~]ů?ZìU?+???i?s`C}??/?_??>?d~?lrn?n^???2???z?-???B??n?D;??aXHoeh?3???
DA5?N?Aw??? ???J?-????P?> 'RGB',
C?~&?1?cd 'heiga~H.`ha162, H2?I???P?p?HsZ?&?P? Y`??;?q4Kov??3?Z???L???? ?F??&???aq?H???????"Ri?F? ??ٵ???L B??r??H%??@??٩qiLJ?pres??on' => 'Deflate',
??/?Z?w,?k???g?=> '2835 dpm',
'Compression' ? ((~??_^A ?c?vV??w????m,7????Eb???0J5?? ??? ????9????:?,24m[1460]
I do not understand the last bit of the file.
How can you change the encoding to be readable?