Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58082


Ignore:
Timestamp:
04/04/2023 05:44:01 PM (16 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58082

    • Property Component changed from Administration to Media
    • Property Summary changed from Import metadata description from darktable into media caption in wordpress to Import metadata description from Darktable into media caption in WordPress
  • Ticket #58082 – Description

    initial v1  
    1 Wordpress 6.2 in interaction with Darktable 4.2.1
     1WordPress 6.2 in interaction with [https://www.darktable.org/ Darktable] 4.2.1
    22
    33It 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.
    44
    5 In Darktable there are 3 metadata-fields in the internal database: title, descripton, notices.
     5In Darktable there are 3 metadata-fields in the internal database: title, description, notices.
    66While exporting from Darktable to JPEG the metadata can be written into the JPG-file. There are 3 groups of metadata: **EXIF**, IPTC and Xmp.
    77
     
    1111
    1212Darktable writes only the "description" into the EXIF-group, the fields "title" and "notices" only in Xmp.
    13 So only the Darktable-field "descrition" can be used für WordPress-caption and title.
     13So only the Darktable-field "description" can be used for WordPress-caption and title.
    1414
    1515If the description has "ASCII only" characters, Darktable exports the description to "EXIF ImageDescription field".
     
    1919The "EXIF UserComment field" is not imported to the WordPress-caption when "EXIF ImageDescription field" is empty (wrong if-structure?).
    2020
    21 So at least only descriptions with "ACSII only"-characters are imported from darktable, texts with special national characters are lost.
     21So at least only descriptions with "ASCII only"-characters are imported from darktable, texts with special national characters are lost.
    2222
    2323Please enable the import of the "EXIF UserComment field".
    2424
    25 Source-code is: function "wp_read_image_metadata()" in /wp-admin/includes/image.php.
     25Source-code is: function `wp_read_image_metadata()` in `/wp-admin/includes/image.php`.
    2626Inserting this 7 lines of code at line 877 solved the problem for me:
    2727
     
    3838}}}
    3939
     40Documentation in German: https://fotodrachen.de/wp/wordpress-bildunterschrift-aus-darktable-metadaten-auslesen/
    4041
    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.
     42On long term it could be useful also to import metadata from the Xmp-group, for example to get different description and title.