mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Reproduce "raw-data" sequence number from an image


Chronological Thread 
  • From: Michele Cirillo <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Reproduce "raw-data" sequence number from an image
  • Date: Tue, 27 Mar 2018 02:59:02 +0200

I solved with the command "xxd -p /path/to/image.png"

Thank you!
Michele

2018-03-26 20:08 GMT+02:00 Michele Cirillo <address@hidden>:
Hi everybody!

I noticed that if I open a .tm file with gedit, nano, ecc., the generic image
is represented by a text line like:

<image|<tuple|<#89504E470D0A1A0A0000000D49484452000000..............>|png>|
25px|25px||>

namely:
(a) there is a prefix "#89504E470D0A1A0A0000000D49484452000000"
(b) and the a number sequence ".............." that depends on the image.

I need to reproduce a such text line automatically from the image file!

My difficulty is to get the number "#89504.............." from the .png file.

The command "hexdump /path/to/image.png" does not reproduce the same number
sequence.

How have I convert the binary .png file in the exact way?

Thank you!
Michele




Archive powered by MHonArc 2.6.19.

Top of page