[wp-trac] [WordPress Trac] #61916: Improving Image Upload Handling: Automatic Resizing for Large Images
WordPress Trac
noreply at wordpress.org
Thu Sep 19 17:49:01 UTC 2024
#61916: Improving Image Upload Handling: Automatic Resizing for Large Images
------------------------------+----------------------
Reporter: maheshmthorat | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Media | Version:
Severity: normal | Resolution: invalid
Keywords: has-testing-info | Focuses:
------------------------------+----------------------
Changes (by hellofromTonya):
* keywords: has-testing-info reporter-feedback => has-testing-info
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Replying to [comment:9 maheshmthorat]:
> However, I tried using this image (https://drive.google.com/file/d
/1zEQ8Z-07EXfjvcrDKJCQBsAV8pPg0ZrD/view?usp=drive_link) and it couldn't
create any variations. Could you please download this image and check if
it works on your side as well?
>
> I've tried it on different servers without success.
I tested that image in a local test environment, same as I did the other
tests in this ticket. It worked for me.
Using this test code:
{{{
<?php
add_action( 'after_setup_theme', function() {
add_image_size( 'custom_size_2400', 2400, 2400, true );
} );
}}}
Here's a list from the `uploads` directory:
{{{
pexels-cottonbro-5658531.jpg
pexels-cottonbro-5658531-150x150.jpg
pexels-cottonbro-5658531-200x300.jpg
pexels-cottonbro-5658531-683x1024.jpg
pexels-cottonbro-5658531-768x1152.jpg
pexels-cottonbro-5658531-1024x1536.jpg
pexels-cottonbro-5658531-1365x2048.jpg
pexels-cottonbro-5658531-2400x2400.jpg
pexels-cottonbro-5658531-scaled.jpg
pexels-cottonbro-5658531.jpg
}}}
Notice, it scaled and cropped to 2400 x 2400, `pexels-
cottonbro-5658531-2400x2400.jpg`.
As there are multiple "can't reproduce" reports, I suspect the issue
you're experiencing is due to something outside of WordPress Core's source
code.
Please note, this Trac is used for the development of the WordPress
software, not for assistance with individual sites or plugins. You can
find people who are able to assist with your site in the
[https://wordpress.org/support/forums/ WordPress support forums].
I've closed this ticket as `invalid`, which is Trac's unfriendly term to
indicate I've referred you to the support team.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61916#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list