Skip to Content.
Sympa Menu

texmacs-users - [TeXmacs] Reproduce "raw-data" sequence number from an image

Subject: mailing-list for TeXmacs Users

List archive

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


Chronological Thread 
  • From: "Michele Cirillo" <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] Reproduce "raw-data" sequence number from an image
  • Date: Mon, 26 Mar 2018 20:08:53 +0200

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