[wp-trac] [WordPress Trac] #58082: Import metadata description from Darktable into media caption in WordPress
WordPress Trac
noreply at wordpress.org
Wed Jul 12 07:17:15 UTC 2023
#58082: Import metadata description from Darktable into media caption in WordPress
-------------------------------------+------------------------
Reporter: fotodrachen | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.4
Component: Media | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by fotodrachen):
It's a bug and it's a small update.\\
The code for import the EXIF "''UserComment''" is already there. But it is
wrapped in a wrong IF-structure (**bug**!).
A filled "''UserComment''" is only imported, when "''ImageDescription''"
is also non-empty. This never happens for pics from DarkTable.
"''ImageDescription''" is filled for only-ascii text from the description-
metadata in DarkTable, "''UserComment''" is filled for **NOT**-only-ascii
text.
So "''ImageDescription''" **OR** "''UserComment''" is filled in the EXIF-
data in a picture, but never both.
"''UserComment''" should be imported even if "''ImageDescription''" is
empty, it's the alternative.\\
I added this case at the end of the if-else-structure. May be there is a
smarter solution modifying a if-condition.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58082#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list