WordPress.org

Make WordPress Core

#43624 closed enhancement (fixed)

Pass EXIF data to the wp_read_image_metadata filter

Reported by: desrosj Owned by: SergeyBiryukov
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch commit
Focuses: Cc:
PR Number:

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 20 months ago.

Download all attachments as: .zip

Change History (8)

@desrosj
20 months ago

#1 @SergeyBiryukov
20 months ago

  • Milestone changed from Awaiting Review to 5.0

#2 @SergeyBiryukov
20 months ago

In 42878:

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

See #43624.

#3 @SergeyBiryukov
20 months 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
13 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

#5 @pento
13 months ago

  • Keywords commit added

👍🏻

#6 @SergeyBiryukov
13 months 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
13 months 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.