Changes between Initial Version and Version 1 of Ticket #58082
- Timestamp:
- 04/04/2023 05:44:01 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58082
-
Property
Component
changed from
Administration
toMedia
-
Property
Summary
changed from
Import metadata description from darktable into media caption in wordpress
toImport metadata description from Darktable into media caption in WordPress
-
Property
Component
changed from
-
Ticket #58082 – Description
initial v1 1 Word press 6.2 in interaction with Darktable4.2.11 WordPress 6.2 in interaction with [https://www.darktable.org/ Darktable] 4.2.1 2 2 3 3 It should be possible to set **Metadata** in the Photo-Editor "Darktable" that can be used as "caption" (and "title") in WordPress without typing it once again. 4 4 5 In Darktable there are 3 metadata-fields in the internal database: title, descript on, notices.5 In Darktable there are 3 metadata-fields in the internal database: title, description, notices. 6 6 While exporting from Darktable to JPEG the metadata can be written into the JPG-file. There are 3 groups of metadata: **EXIF**, IPTC and Xmp. 7 7 … … 11 11 12 12 Darktable writes only the "description" into the EXIF-group, the fields "title" and "notices" only in Xmp. 13 So only the Darktable-field "descri tion" can be used für WordPress-caption and title.13 So only the Darktable-field "description" can be used for WordPress-caption and title. 14 14 15 15 If the description has "ASCII only" characters, Darktable exports the description to "EXIF ImageDescription field". … … 19 19 The "EXIF UserComment field" is not imported to the WordPress-caption when "EXIF ImageDescription field" is empty (wrong if-structure?). 20 20 21 So at least only descriptions with "A CSII only"-characters are imported from darktable, texts with special national characters are lost.21 So at least only descriptions with "ASCII only"-characters are imported from darktable, texts with special national characters are lost. 22 22 23 23 Please enable the import of the "EXIF UserComment field". 24 24 25 Source-code is: function "wp_read_image_metadata()" in /wp-admin/includes/image.php.25 Source-code is: function `wp_read_image_metadata()` in `/wp-admin/includes/image.php`. 26 26 Inserting this 7 lines of code at line 877 solved the problem for me: 27 27 … … 38 38 }}} 39 39 40 Documentation in German: https://fotodrachen.de/wp/wordpress-bildunterschrift-aus-darktable-metadaten-auslesen/ 40 41 41 42 Dokumentation in German: https://fotodrachen.de/wp/wordpress-bildunterschrift-aus-darktable-metadaten-auslesen/ 43 44 On long term it could be usefull also to import metadata from the Xmp-group, for example to get different description and title. 42 On long term it could be useful also to import metadata from the Xmp-group, for example to get different description and title.