[wp-trac] [WordPress Trac] #61925: subsizes with same dimensions are generated multiple times unnecessarily

WordPress Trac noreply at wordpress.org
Tue Aug 27 08:30:11 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rohitmathur7):

 Hii @kkmuffme ,
 I tried to replicate the issue but was not able to.

 These are the steps I followed:
 - Register multiple new image sizes with same dimensions but different
 name.

 {{{
 function replicate_subsizes_issue() {
         // Register multiple image sizes with the same dimensions and crop
 settings
         add_image_size( 'custom-size-1', 800, 600, true );
         add_image_size( 'custom-size-2', 800, 600, true );
         add_image_size( 'custom-size-3', 800, 600, true );
 }
 add_action( 'after_setup_theme', 'replicate_subsizes_issue' );
 }}}

 - Added a new image in media library.
 - But for the new image I can only see one image in uploads with dimension
 800X600.

 Can you please specify the steps to replicate this?
 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61925#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list