[wp-trac] [WordPress Trac] #60172: Incorrect APP1 Exif Identifier Code
WordPress Trac
noreply at wordpress.org
Mon Jan 1 08:28:45 UTC 2024
#60172: Incorrect APP1 Exif Identifier Code
--------------------------+-----------------------------
Reporter: ainsleyclark | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
A warning is triggered in WordPress when trying to read EXIF data from
images using the `exif_read_data function`. This issue is encountered in
the image processing workflow, specifically in the
`wp_read_image_metadata` function.
Stack trace is below:
/wp-admin/includes/image.php in wp_read_image_metadata at line 856
/wp-admin/includes/image.php in wp_create_image_subsizes at line 258
/wp-admin/includes/image.php in wp_generate_attachment_metadata at line
504
/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php in
WC_Regenerate_Images::resize_and_return_image at line 402
/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php in
WC_Regenerate_Images::maybe_resize_image at line 251
The error handling for the exif_read_data function should be reviewed to
ensure that it gracefully handles scenarios where EXIF data is not
formatted as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60172>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list