Make WordPress Core

Opened 16 years ago

Closed 10 years ago

#6819 closed defect (bug) (wontfix)

EXIF data extracted from uploaded images stored incorrectly

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


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)

#1 @tellyworth
16 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.

#2 @arminbw
16 years ago

Please also consider issues related to the EXIF content. See:

#3 @Denis-de-Bernardy
15 years ago

  • Component changed from Administration to Media

#4 @ryan
15 years ago

  • Milestone changed from 2.9 to Future Release

#5 @johnbillion
10 years 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.