Commit bfdae9d
committed
exif: do not blanket-delete all custom metadata on Xmp read
Through the call chain dt_image_import ->
_image_import_internal -> dt_exif_xmp_read -> _exif_decode_xmp_data, the
function _exif_decode_xmp_data would be called with exif_read == FALSE,
causing it to delete all metadata which has previously been read in
_exif_decode_exif_data (see the parent commit).
The intent was likely to be able to update descriptions etc. which had
been written through other programs in the Xmp files in darktable. In
order to continue to support this use case, we do still remove
Xmp-related tags if we don't find them in the sidecar, but only those
(via a string match).1 parent 227534a commit bfdae9d
3 files changed
+36
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
614 | 613 | | |
615 | 614 | | |
616 | 615 | | |
| |||
629 | 628 | | |
630 | 629 | | |
631 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
632 | 637 | | |
633 | 638 | | |
634 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
841 | 869 | | |
842 | 870 | | |
843 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments