WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 3 months ago

#6819 closed defect (bug) (wontfix)

EXIF data extracted from uploaded images stored incorrectly

Reported by: matt Owned by: tellyworth
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Media Keywords: blessed
Focuses: Cc:

Description

Currently extracted EXIF data is stored as a single custom field with a serialized array containing all the data - it should be stored with one-custom-field per data entry, probably with the exif_ prefix.

Change History (5)

comment:1 tellyworth6 years ago

I agree. I stored it there in the first place so as to fit in with the existing method of storing image metadata.

I think we should move all of the image and attachment metadata into separate rows rather than a serialized array.

That serialized array is fetched and updated with wp_get_attachment_metadata() and wp_update_attachment_metadata(), so we can probably maintain API compatibility and just change the underlying storage method.

There are also some things in the attachment meta that could be cleaned up and standardized but that's probably best considered as a separate step.

comment:2 arminbw6 years ago

Please also consider issues related to the EXIF content. See: http://trac.wordpress.org/ticket/6819

comment:3 Denis-de-Bernardy5 years ago

  • Component changed from Administration to Media

comment:4 ryan4 years ago

  • Milestone changed from 2.9 to Future Release

comment:5 johnbillion3 months ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This ship has sailed.

EXIF/IPTC data is now stored along with the rest of an image's metadata in the _wp_attachment_metadata post meta field. Additionally, this data is used to populate the attachment title and caption when present.

Note: See TracTickets for help on using tickets.