[MP 0.25 WinXP SP3] loss of metadata during export

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

Post Reply
gaaned92
Posts: 38
Joined: Thu Feb 11, 2010 11:55 am

[MP 0.25 WinXP SP3] loss of metadata during export

Post by gaaned92 »

when we export JPG file as PNG or TIF file, I think that metadata should be kept, in peculiar XMP and ICC profile.

If we export a JPG file containing ICC, XMP, IPTC and exif metadata :
- Exported Tif file contains only Exif and IPTC metadata
- exported PNG file contains no metadata.

As metadata management seems tricky, I am not sure of what should be kept but I think XMP metadata must remain in TIF and PNG file.

Can you confirm this point ?
André
User avatar
xnview
Author of XnView
Posts: 33836
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by xnview »

I can't confirm... Could you send me the file used?
Pierre.
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by JohnFredC »

I have noticed that none of my tools save textural metadata for PNGs, though the PNG spec seems to offer support for text chunks.

This would be great if it would be possible to save ratings, etc, into PNG images.

Is it possible?
John
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by marsh »

Here is a png with xmp.
Attachments
pngwxmp.png
pngwxmp.png (3.87 KiB) Viewed 2620 times
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by JohnFredC »

Sure enough, that PNG does have metadata! :shock:

But... XnView 1.97.2 shows it as an XML tree in the XMP tab and MP just shows integers in the XMP tab.

Still, proves it is possible.

Marsh, what tool did you use to add the data to the PNG?
John
gaaned92
Posts: 38
Joined: Thu Feb 11, 2010 11:55 am

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by gaaned92 »

xnview wrote:I can't confirm... Could you send me the file used?
This file is extracted from http://www.color.org/version4html.xalter
Lower_Left.jpg
Lower_Left.jpg (42.81 KiB) Viewed 2590 times
André
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by marsh »

JohnFredC wrote: Marsh, what tool did you use to add the data to the PNG?
Exiv2. It can insert info from a mated xmp file.
User avatar
XnTriq
Moderator & Librarian
Posts: 5616
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by XnTriq »

Adobe ([url=http://xml.coverpages.org/XMP-Embedding.pdf]Embedding XMP Metadata in Application Files[/url]) wrote:An XML packet can be embedded in a PNG graphic file by adding a chunk of type “tXMP”. The data of the chunk should be a UTF-8 serialized XML packet.
There should be no more than one ‘tXMP’ chunk present in each PNG file. Encoders are encouraged to place the chunk at the beginning of the file, but this is not a requirement.
gaaned92
Posts: 38
Joined: Thu Feb 11, 2010 11:55 am

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by gaaned92 »

see also :
exiftool: PNG tags

André
User avatar
xnview
Author of XnView
Posts: 33836
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [MP 0.25 WinXP SP3] loss of metadata during export

Post by xnview »

I've tried with your jpeg file in Export dialog:
TIFF written=> XMP/IPTC/EXIF
PNG written=> XMP
Pierre.
Post Reply