[wp-trac] [WordPress Trac] #48485: Custom image size not generated if identical to original size

WordPress Trac noreply at wordpress.org
Wed Nov 30 17:07:36 UTC 2022


#48485: Custom image size not generated if identical to original size
---------------------------+-----------------------------
 Reporter:  brampeerlings  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  6.2
Component:  Media          |     Version:  5.2.4
 Severity:  minor          |  Resolution:
 Keywords:  2nd-opinion    |     Focuses:  administration
---------------------------+-----------------------------
Changes (by antpb):

 * milestone:  Awaiting Review => 6.2


Comment:

 This was mentioned in the Media component meeting and we were able to
 reproduce the report.

 • To reproduce add the provided snippet with the sizes attribute exactly
 matching an image available
 • Upload that image
 • Insert that image to a post and notice that the custom size is not
 available.
 • Upload any other image that is not the same size
 • Insert the second image into a post and notice the custom size _is_
 available

 We need to catch for the case of custom sizes matching the uploaded image
 and use the originally uploaded image for that custom size.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48485#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list