Opened 10 years ago
Closed 10 years ago
#31043 closed defect (bug) (fixed)
wp_read_image_metadata is looking for invalid EXIF data
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
wp_read_image_metadata()
is used to determine which info found in the the IPTC and EXIF header for an image gets inserted into the database. Unfortunately one of the tests it's doing is looking for an EXIF entry that doesn't exist.
From everything I can determine there is no such tag as EXIF:Title, which is being looked for on line 341 of wp-admin/includes/image.php
This test should be removed.
[reference]http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
This is correct - EXIF
Title
indeed appears to not exist, which makes this piece of code unusable. I suggest that we should remove it as unnecessary. Also, nothing further should be done, as in the lines below, EXIFImageDescription
will be set as title (if not longer than 80 characters). Submitting a patch with the removed code.