[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: 27
Joined: Thu Feb 11, 2010 11:55 am

[MP 0.25 WinXP SP3] loss of metadata during export

Post by gaaned92 » Thu Mar 18, 2010 10:21 pm

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: 32005
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 » Fri Mar 19, 2010 12:42 pm

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 » Fri Mar 19, 2010 1:42 pm

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 » Fri Mar 19, 2010 2:17 pm

Here is a png with xmp.
Attachments
pngwxmp.png
pngwxmp.png (3.87 KiB) Viewed 2438 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 » Fri Mar 19, 2010 2:49 pm

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: 27
Joined: Thu Feb 11, 2010 11:55 am

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

Post by gaaned92 » Fri Mar 19, 2010 9:08 pm

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 2408 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 » Sat Mar 20, 2010 2:48 am

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: 5457
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 » Sun Mar 21, 2010 2:30 pm

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: 27
Joined: Thu Feb 11, 2010 11:55 am

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

Post by gaaned92 » Mon Mar 22, 2010 8:28 am

see also :
exiftool: PNG tags

André

User avatar
xnview
Author of XnView
Posts: 32005
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 » Mon Mar 22, 2010 12:03 pm

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

Post Reply