View Single Post
  #43  
Old February 14th 20, 01:52 PM posted to alt.windows7.general,alt.comp.os.windows-10,microsoft.public.windowsxp.general
J. P. Gilliver (John)[_7_]
external usenet poster
 
Posts: 603
Default Does the .png image format have a text metadata field?

In message , R.Wieser
writes:
Java Jive,

Paint will load and save PNG files, but know even less about them than


Oh, only PNG? I'd thought maybe the W10 version did JPEGs by now.

PSP, for example there is nothing under File, Properties to display any
image metadata.


Paint is an MS program. If the "file properties" dialog doesn't know about
PNG attributes, its very likely Paint won't either. :-)


"File Properties" under 7 can edit _one_ PNG attribute, "Date taken".

And by the way: GDI+ (which contains the support for EXIF properties) does
not know how to write an EXIF property into a PNG image.


"EXIF Pilot" can; it _could_ be proprietary or a special, but it
presents it under an EXIF tab, _implying_ it's part of some standard.

On the other hand, when using GDI+ to load a JPG image and saving it as a
PNG it does copy a JPG textrecord (id FFFE) into the PNG image as a "tEXt"
field, prepended a "Comment\0". They did not /fully/ throw their hats at
it.

Regards,
Rudy Wieser


I've got a JPEG that, in IrfanView, has comment text (put there with
IrfanView), EXIF text (under the heading "XPComment"; put there with
Explorer [IrfanView can't _edit_ that, just view it]), and IPTC text.

When viewed in hex: the comment text starts at byte indexed as 06 (first
byte being indexed as 00); bytes 02 and 03 are FF and FE. The IPTC text
(in this file, anyway) starts at byte 00252C, where the preceding
sixteen bytes are 03 1B 25 47 1C 01 00 00 02 00 04 1C 02 78 00 08 (the
text I put there is 8 characters, so I guess that's that; I don't know
which if any of those byte pairs are a type identifier), and the EXIF
text starts at 001098 (stored with intervening zeroes, so possibly
001097 if they're leading zeroes), with many 00 bytes before it (so no
obvious data type identifier).
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

And indeed, Dutch isn't a lanuguage, it's a throat disease.
- Frank Slootweg in 3 Windows newsgroups, 2019-7-24
Ads