[wp-trac] [WordPress Trac] #55535: Pre-populate Image Alt Text field with IPTC Photo Metadata Standard Alt Text

WordPress Trac noreply at wordpress.org
Sat Aug 27 00:11:50 UTC 2022


#55535: Pre-populate Image Alt Text field with IPTC Photo Metadata Standard Alt
Text
-------------------------+----------------------------
 Reporter:  eatingrules  |       Owner:  joedolson
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  6.1
Component:  Media        |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  needs-patch  |     Focuses:  accessibility
-------------------------+----------------------------

Comment (by joedolson):

 I'm not having any luck getting the new IPTC fields from the image using
 `iptcparse`, and I'm not really sure why - I don't see anything in the
 [https://github.com/php/php-
 src/blob/926407f22433446fb7252a4b1b41dc4e2166fe93/ext/standard/iptc.c#L303
 function source] that looks like it would skip newly defined tags.

 I verified that the provided image does contain the extended alt
 information by viewing the raw image data, but the function doesn't pick
 them up.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55535#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list