[wp-trac] [WordPress Trac] #48209: Original file name changes on images upload and extra unregistered image sizes generated

WordPress Trac noreply at wordpress.org
Fri Oct 4 13:11:30 UTC 2019


#48209: Original file name changes on images upload and extra unregistered image
sizes generated
--------------------------+-------------------------
 Reporter:  Iulia Cazan   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by desrosj):

 * keywords:  needs-testing 2nd-opinion =>
 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  5.3 =>


Comment:

 The `2048x2048` and `1536x1536` are new sizes introduced in [46066] in an
 effort to enhance the way WordPress displays images on the front-end on
 larger, high-density devices. They make it possible to generate more
 suitable `srcset` and `sizes` attributes, and not use the original, often
 non-optimized image.

 These new sizes will be generated for all newly uploaded images going
 forward.

 I am seeing the original image in the meta data that you supplied in the
 `original_image` index, so it seems to be working as intended.

 - The original image is larger than the new big image threshold used to
 cap images at an upper size limit.
 - The original is scaled down to be more useful using the two new image
 sizes.
 - The original is preserved in the attachment's meta data.

 If you wish to disable this big image threshold (or tweak it to your
 liking), you can use the `big_image_size_threshold` filter to return a new
 size. Returning `false` will disable this.

 I'm goign to close this out because it appears to be working as intended.
 If I am misinterpreting the questions, or you have more, feel free to
 reopen to discuss more.

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


More information about the wp-trac mailing list