[wp-trac] [WordPress Trac] #61916: Improving Image Upload Handling: Automatic Resizing for Large Images
WordPress Trac
noreply at wordpress.org
Tue Sep 17 16:03:37 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: | Focuses:
---------------------------+------------------------------
Comment (by hellofromTonya):
== Reproduction Report
Repeating comment:3 test report but this time ''specifying both the width
and height''.
This report validates that the issue can be reproduced.
=== Environment
- OS: macOS
- Web Server: Nginx
- PHP: 8.3.8
- WordPress: 6.6.2
- Browser: Firefox 15.4
- Theme: Twenty Twenty-Four
- Active Plugins: None
=== Set up
Image: Same as comment:3
Code: Same as comment:3, except also specified the height.
{{{
<?php
add_action( 'after_setup_theme', function() {
add_image_size( 'custom_size_2400', 2400, 2400 );
} );
}}}
=== Test Instructions
1. Log into admin.
2. Go to Media > Add New Media File.
3. Select (or drag and drop) the large image to be uploaded.
4. Once uploaded, check the generated scaled images in the `wp-
content/uploads/` directory.
🐞 Reported bug occurs here in that there should not be any scaled images
with a custom dimension of 2400.
=== Actual Results
❌ Not able to reproduce the bug.
This image was generated `photo-1644433329707-2b528437a7e7-1600x2400.jpg`.
The 8294 × 12440 image was scaled to 1600 x 2400.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61916#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list