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

WordPress Trac noreply at wordpress.org
Fri Aug 23 11:29:46 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:  General        |    Version:  6.6.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 When uploading large images (e.g., those with dimensions exceeding 7500
 pixels), the system doesn't automatically crop them to the custom size of
 2400 pixels using the following code:

 {{{#!php
 <?php
 add_image_size('custom_size_2400', 2400);

 }}}


 Additionally, there are no restrictions on uploading images of any
 resolution. Currently, to achieve the desired size, you must manually crop
 the image to a smaller size before it will resize correctly.

 To address this, there should be a setting that automatically converts the
 uploaded image to the maximum allowed size, after which it will resize
 according to the specified dimensions.

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


More information about the wp-trac mailing list