[wp-trac] [WordPress Trac] #58611: wp_get_missing_image_subsizes can return incorrect subsizes for a rotated image

WordPress Trac noreply at wordpress.org
Fri Jun 23 12:33:44 UTC 2023


#58611: wp_get_missing_image_subsizes can return incorrect subsizes for a rotated
image
--------------------------+-----------------------------
 Reporter:  ianmjones     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  6.2.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 During the upload of a rotated image to the Media Library, the
 `wp_get_missing_image_subsizes()` function often returns missing subsizes
 for the non-rotated original image that will never be generated for the
 rotated image.

 This means for example, if a plugin is filtering
 `wp_update_attachment_metadata` and waiting for all thumbnails to have
 been generated before performing some action, it may be told that there
 are missing thumbnails for a rotated image, that will not be generated.
 Therefore it will not be able to perform that action as not all the
 thumbnails are deemed to be available.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58611>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list