[wp-trac] [WordPress Trac] #61916: Improving Image Upload Handling: Automatic Resizing for Large Images

WordPress Trac noreply at wordpress.org
Tue Sep 17 16:11:33 UTC 2024


#61916: Improving Image Upload Handling: Automatic Resizing for Large Images
------------------------------------------------+--------------------------
 Reporter:  maheshmthorat                       |       Owner:  (none)
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
                                                |  Review
Component:  Media                               |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  has-testing-info reporter-feedback  |     Focuses:
------------------------------------------------+--------------------------
Changes (by hellofromTonya):

 * keywords:   => has-testing-info reporter-feedback


Comment:

 @maheshmthorat, I ran 3 different tests by specifying in
 `add_image_size()`:

 * comment:3 only the width dimension.
 * comment:4 width and height dimensions.
 * comment:5 width, height, and to crop the image.

 Reference:
 https://developer.wordpress.org/reference/functions/add_image_size/

 Each of the tests worked as expected.

 The [comment:5 last test] generated a scaled and cropped the image of 2400
 x 2400 ✅

 So to scale and crop to 2400 x 2400, do this:
 {{{
 add_image_size( 'custom_size_2400', 2400, 2400, true );
 }}}

 Can you check please if changing `add_image_size()` works for you? Also,
 do my tests align to how you are testing the issue you're experiencing?

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


More information about the wp-trac mailing list