Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#43624 closed enhancement (fixed)

Pass EXIF data to the wp_read_image_metadata filter

Reported by: desrosj's profile desrosj Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description

Currently, if a function hooking into wp_read_image_metadata wants to use the image's EXIF data to change the attachment meta, it needs to check and reprocess the EXIF data using exif_read_data().

The processed EXIF data should just be made available through the filter hook.

Attachments (1)

43624.patch (936 bytes) - added by desrosj 7 years ago.

Download all attachments as: .zip

Change History (8)

@desrosj
7 years ago

#1 @SergeyBiryukov
7 years ago

  • Milestone changed from Awaiting Review to 5.0

#2 @SergeyBiryukov
7 years ago

In 42878:

Media: In wp_read_image_metadata(), rename $sourceImageType variable to $image_type to match coding standards.

See #43624.

#3 @SergeyBiryukov
7 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 42879:

Media: Pass EXIF data to the wp_read_image_metadata filter.

Props desrosj.
Fixes #43624.

#4 @johnbillion
7 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Let's merge [42878] and [42879] into 5.0.

#5 @pento
7 years ago

  • Keywords commit added

👍🏻

#6 @SergeyBiryukov
7 years ago

In 43749:

Media: In wp_read_image_metadata(), rename $sourceImageType variable to $image_type to match coding standards.

Merges [42878] to the 5.0 branch.
See #43624.

#7 @SergeyBiryukov
7 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 43750:

Media: Pass EXIF data to the wp_read_image_metadata filter.

Props desrosj.
Merges [42879] to the 5.0 branch.
Fixes #43624.

Note: See TracTickets for help on using tickets.