XnConvert: "Keep metadata" does not keep all metadata

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

sx090
Posts: 30
Joined: Thu Jan 11, 2024 8:49 am

XnConvert: "Keep metadata" does not keep all metadata

Post by sx090 »

Hi all,

I found that the option "Keep metadata" does not really keep all metadata.
I assume this might be known!?

The way I understand is: It only keeps "known" and common metadata entries.
But for example, I have Samsung smartphone pictures which do have an embedded "Depth Map" which is stripped.
Or I have PNG files generated by AI (Stable diffusion WebUI) which do have meta entries of the image generation - also removed.

Would it be possible to add a "Keep ALL metadata" entry which really does the following:
Pass through ALL metadata, no matter what entry it is?

Thank you very much for consideration!
User avatar
xnview
Author of XnView
Posts: 45553
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by xnview »

could you send us a sample file? and the ouput?
Pierre.
sx090
Posts: 30
Joined: Thu Jan 11, 2024 8:49 am

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by sx090 »

Sure - two examples:

1. a PNG file generated by AI (stable diffusion) which does contain the generating prompt etc
https://www.dropbox.com/scl/fi/ic26k8o0 ... cetp1&dl=0

If you check using Exiftool, which really reads all Metadata entries (also custom ones, which are not known upfront), it shows:

Code: Select all

ExifTool Version Number         : 12.74
File Name                       : 00000-4097173258.png
File Size                       : 1213 kB
Zone Identifier                 : Exists
File Modification Date/Time     : 2024:03:28 10:32:58+01:00
File Access Date/Time           : 2024:03:28 10:34:42+01:00
File Creation Date/Time         : 2024:03:28 10:32:58+01:00
File Permissions                : -rw-rw-rw-
File Type                       : PNG
File Type Extension             : png
MIME Type                       : image/png
Image Width                     : 1024
Image Height                    : 1024
Bit Depth                       : 8
Color Type                      : RGB
Compression                     : Deflate/Inflate
Filter                          : Adaptive
Interlace                       : Noninterlaced
[b]Parameters                      : nice sports car.Steps: 25, Sampler: DPM++ 2M Karras, CFG scale: 4, Seed: 4097173258, Size: 1024x1024, Model hash: 0e5e80eff7, Model: xxxxxx-000004, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.4, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 24.3.3, Version: v1.8.0[/b]
Image Size                      : 1024x1024
Megapixels                      : 1.0
Oldest Date Time                : 2024:03:28 10:32:58
So you see the generating Parameters as entry here.


2. actually EVERY picture taken by my Samsung S23 in Portait mode contains a lot of custom samsung entries, like binary embeddings: The Depth Map as well as the full and ohter data...
https://www.dropbox.com/scl/fi/hhor2hbf ... 1cmcu&dl=0

Image

I mean in general it's good that the "EmbeddedImage" (binary data 1.9MByte!!!) is removed, but if someone ticks "Keep original Data" I guess he/she wants to keep data no matter what - some of these entries could be very helpful in future.

My guess is:
There are probably further other examples where stuff is removed because XnConvert doesnt know about it.

Wouldnt it make sense to completely pass-through the whole original Metadata stream and not reduce it to entries "known" to XnConvert?

Thanks!
sx090
Posts: 30
Joined: Thu Jan 11, 2024 8:49 am

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by sx090 »

Hi :) Have you had the time to look into it already? :)
User avatar
xnview
Author of XnView
Posts: 45553
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by xnview »

yes, for png it's fixed
Pierre.
sx090
Posts: 30
Joined: Thu Jan 11, 2024 8:49 am

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by sx090 »

Oh, great News!!!
And for JPG you still look into it?
Or what do you think?
User avatar
xnview
Author of XnView
Posts: 45553
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by xnview »

sx090 wrote: Thu Apr 04, 2024 2:41 pm And for JPG you still look into it?
Or what do you think?
i need to check how these metadatas are saved
Pierre.
sx090
Posts: 30
Joined: Thu Jan 11, 2024 8:49 am

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by sx090 »

Alright, htank you so much Pierre. Just let me know please in case you found something
reecess
Posts: 1
Joined: Fri Nov 22, 2024 10:28 pm

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by reecess »

Any solution to this in regards to jpg images?

I'm converting them to webP files and my captions disappear.
User avatar
xnview
Author of XnView
Posts: 45553
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by xnview »

reecess wrote: Fri Nov 22, 2024 10:30 pm I'm converting them to webP files and my captions disappear.
Please send input and output files
Pierre.
Tweedeldee
Posts: 1
Joined: Tue Dec 31, 2024 2:52 am

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by Tweedeldee »

Hi ! I'm facing the same problem, converting from JPEG to JPEGXL : EXIF metadata are not kept.
Any workaround, or anything I could do from my side to help debugging ?

Example
Source file: https://drive.google.com/file/d/1q_gVyG ... sp=sharing
Converted file: https://drive.google.com/file/d/1XZdo7C ... sp=sharing

Code: Select all

 C:\Tools\exiftool-13.10_64\exiftool.exe C:\Tools\exiftool-13.10_64\test
======== C:/Tools/exiftool-13.10_64/test/20240506_071231.jpg
ExifTool Version Number         : 13.10
File Name                       : 20240506_071231.jpg
Directory                       : C:/Tools/exiftool-13.10_64/test
File Size                       : 2.8 MB
File Modification Date/Time     : 2024:11:07 18:15:55-08:00
File Access Date/Time           : 2024:12:30 18:50:12-08:00
File Creation Date/Time         : 2024:12:30 18:50:12-08:00
File Permissions                : -rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : samsung
Camera Model Name               : Galaxy S23 Ultra
Orientation                     : Rotate 90 CW
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : S918WVLS2CXCN
Modify Date                     : 2024:05:06 07:12:31
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/30
F Number                        : 2.4
Exposure Program                : Program AE
ISO                             : 800
Exif Version                    : 0220
Date/Time Original              : 2024:05:06 07:12:31
Create Date                     : 2024:05:06 07:12:31
Offset Time                     : -07:00
Offset Time Original            : -07:00
Shutter Speed Value             : 1
Aperture Value                  : 2.4
Exposure Compensation           : 0
Max Aperture Value              : 2.4
Metering Mode                   : Center-weighted average
Flash                           : No Flash
Focal Length                    : 7.9 mm
Sub Sec Time                    : 299
Sub Sec Time Original           : 299
Sub Sec Time Digitized          : 299
Flashpix Version                : 0100
Color Space                     : Uncalibrated
Exif Image Width                : 4000
Exif Image Height               : 2252
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 3
Focal Length In 35mm Format     : 69 mm
Scene Capture Type              : Standard
Image Unique ID                 : L12XSPE01PM
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Above Sea Level
Compression                     : JPEG (old-style)
Thumbnail Offset                : 996
Thumbnail Length                : 42160
Profile CMM Type                :
Profile Version                 : 4.3.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2022:07:01 00:00:00
Profile File Signature          : acsp
Primary Platform                : Unknown (SEC)
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Unknown (SEC)
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Unknown (SEC)
Profile ID                      : 0
Profile Description             : DCI-P3 D65 Gamut with sRGB Transfer
Profile Copyright               : Copyright (c) 2022 Samsung Electronics Co., Ltd.
Media White Point               : 0.9642 1 0.82491
Chromatic Adaptation            : 1.04781 0.02289 -0.05013 0.02954 0.99048 -0.01704 -0.00923 0.01505 0.75214
Red Matrix Column               : 0.51508 0.24117 -0.00105
Green Matrix Column             : 0.29195 0.69223 0.04189
Blue Matrix Column              : 0.15718 0.06659 0.78455
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Image Width                     : 4000
Image Height                    : 2252
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Time Stamp                      : 2024:05:06 07:12:31.692-07:00
MCC Data                        : Canada (302)
Aperture                        : 2.4
Image Size                      : 4000x2252
Megapixels                      : 9.0
Scale Factor To 35 mm Equivalent: 8.7
Shutter Speed                   : 1/30
Create Date                     : 2024:05:06 07:12:31.299
Date/Time Original              : 2024:05:06 07:12:31.299-07:00
Modify Date                     : 2024:05:06 07:12:31.299-07:00
Thumbnail Image                 : (Binary data 42160 bytes, use -b option to extract)
GPS Altitude                    : 46 m Above Sea Level
GPS Latitude                    : 49 deg 16' 44.52" N
GPS Longitude                   : 123 deg 6' 40.27" W
Circle Of Confusion             : 0.003 mm
Field Of View                   : 29.2 deg
Focal Length                    : 7.9 mm (35 mm equivalent: 69.0 mm)
GPS Position                    : 49 deg 16' 44.52" N, 123 deg 6' 40.27" W
Hyperfocal Distance             : 7.56 m
Light Value                     : 4.4
======== C:/Tools/exiftool-13.10_64/test/20240506_071231.jxl
ExifTool Version Number         : 13.10
File Name                       : 20240506_071231.jxl
Directory                       : C:/Tools/exiftool-13.10_64/test
File Size                       : 1548 kB
File Modification Date/Time     : 2024:11:07 18:15:55-08:00
File Access Date/Time           : 2024:12:30 18:48:51-08:00
File Creation Date/Time         : 2024:12:30 18:48:35-08:00
File Permissions                : -rw-rw-rw-
File Type                       : JXL Codestream
File Type Extension             : jxl
MIME Type                       : image/jxl
Image Width                     : 2252
Image Height                    : 4000
Image Size                      : 2252x4000
Megapixels                      : 9.0
User avatar
xnview
Author of XnView
Posts: 45553
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnConvert: "Keep metadata" does not keep all metadata

Post by xnview »

Tweedeldee wrote: Tue Dec 31, 2024 2:57 am Hi ! I'm facing the same problem, converting from JPEG to JPEGXL : EXIF metadata are not kept.
Any workaround, or anything I could do from my side to help debugging ?
It's fixed in next release
Pierre.