[wp-trac] [WordPress Trac] #61925: subsizes with same dimensions are generated multiple times unnecessarily
WordPress Trac
noreply at wordpress.org
Mon Aug 26 01:37:10 UTC 2024
#61925: subsizes with same dimensions are generated multiple times unnecessarily
--------------------------+-----------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-
admin/includes/image.php#L461
`_wp_make_subsizes` will generate the same file with same dimensions
multiple times if multiple sizes with the same dimensions/crop are
registered.
This unnecessarily slows down the uploads and often is a cause for
timeouts too, if there are many sizes registered.
e.g. with WooCommerce where "woocommerce_gallery_thumbnail" might be equal
to wp "thumbnail" size.
I checked trac, but couldn't find a related issue, in case there's one
please close this one.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61925>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list