Bug 469526

Summary: No metadata when exporting in AVIF
Product: [Applications] digikam Reporter: Maxime <betamax256>
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 8.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.1.0
Sentry Crash Report:

Description Maxime 2023-05-09 12:40:16 UTC
Hello, I'using a beta 8.1.0 (digiKam-8.1.0-20230504T052816-x86-64)
When I export a JPEG image in AVIF, (after edited by F4), all exif  metadata are not preserved, so, no metadata in the new AVIF file.
Note that I'don't know if this is a bug or normal action for AVIF but when I export the same image in HEIC, all metadata are preserved in the new HEIC image.


SOFTWARE/OS VERSIONS
Kubuntu 23.04
Comment 1 caulier.gilles 2023-05-09 12:42:41 UTC
Hi,

AVIF is not yet supported to write metadata by Exiv2 shared lib. Use XMP sidecar instead. Look in Setup Metadata for details :

https://docs.digikam.org/en/setup_application/metadata_settings.html#sidecars-settings

Gilles Caulier
Comment 2 Maxime 2023-05-09 14:56:39 UTC
Hi, ok thanks ;)
Comment 3 caulier.gilles 2023-05-09 15:55:10 UTC
Did you try the XMP sidecar solution ? It work for you ?

Gilles Caulier
Comment 4 Maik Qualmann 2023-05-09 16:00:36 UTC
If you activate the option to write metadata with ExifTool in the digiKam metadata settings, all metadata are present in the AVIF file.

Maik
Comment 5 Maxime 2023-05-09 17:02:19 UTC
(In reply to Maik Qualmann from comment #4)
> If you activate the option to write metadata with ExifTool in the digiKam
> metadata settings, all metadata are present in the AVIF file.
> 
> Maik

Absolutely not, I have tried this solution
Comment 6 Maik Qualmann 2023-05-09 17:05:11 UTC
This is strange, I tested it, without ExifTool no metadata, with activated ExifTool write option, all metadata present. Which ExifTool version are you using? Is the AppImage used?

Maik
Comment 7 Maxime 2023-05-09 17:06:28 UTC
(In reply to Maik Qualmann from comment #6)
> This is strange, I tested it, without ExifTool no metadata, with activated
> ExifTool write option, all metadata present. Which ExifTool version are you
> using? Is the AppImage used?
> 
> Maik

Yes, I use Appimage :)
Comment 8 Maxime 2023-05-09 17:08:46 UTC
(In reply to caulier.gilles from comment #3)
> Did you try the XMP sidecar solution ? It work for you ?
> 
> Gilles Caulier


My mother tong is not english and by "sidecar" I understand "an attached file".
So if sidecar add a data file type DNG, this solution is not for me
Comment 9 Maik Qualmann 2023-05-09 17:19:18 UTC
I can reproduce it with another jpeg image as source, we generate too big thumbnail and get over the maximum EXIF size.

Maik
Comment 10 Maxime 2023-05-09 17:25:41 UTC
(In reply to Maik Qualmann from comment #9)
> I can reproduce it with another jpeg image as source, we generate too big
> thumbnail and get over the maximum EXIF size.
> 
> Maik

You can export metadata from JPG to AVIF with Appimage version ?
Comment 11 Maik Qualmann 2023-05-09 17:33:49 UTC
Git commit 983d570c0d1037fcaeb6dbfd8618bfcf2fc529f5 by Maik Qualmann.
Committed on 09/05/2023 at 17:32.
Pushed by mqualmann into branch 'master'.

only save preview with PNG and TIFF images
FIXED-IN: 8.1.0

M  +1    -1    NEWS
M  +6    -6    core/libs/dimg/dimg_metadata.cpp

https://invent.kde.org/graphics/digikam/commit/983d570c0d1037fcaeb6dbfd8618bfcf2fc529f5
Comment 12 Maik Qualmann 2023-05-09 17:35:38 UTC
With the next AppImage there will be no more problems with the metadata in AVIF if ExifTool is activated.

Maik
Comment 13 Maxime 2023-05-09 17:45:20 UTC
OK ! Thanks
Comment 14 caulier.gilles 2023-05-17 04:41:06 UTC
yes AVIF must be supported in AppImage