[wp-trac] [WordPress Trac] #61916: Improving Image Upload Handling: Automatic Resizing for Large Images
WordPress Trac
noreply at wordpress.org
Wed Sep 18 14:16:57 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:
------------------------------------------------+--------------------------
Comment (by hellofromTonya):
@maheshmthorat as you're seeking to scale and crop the images, please
change your code to do this:
{{{
<?php
add_action( 'after_setup_theme', function() {
add_image_size( 'custom_size_2400', 2400, 2400, true );
} );
}}}
The code specifies the width (2400), height (2400), and sets it to crop
(`true`).
Can you retest please?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61916#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list