[wp-trac] [WordPress Trac] #64943: WP generates duplicate pictures after Upload

WordPress Trac noreply at wordpress.org
Wed Mar 25 20:17:53 UTC 2026


#64943: WP generates duplicate pictures after Upload
--------------------------+------------------------------
 Reporter:  fotodrachen   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  6.9.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by siliconforks):

 Replying to [comment:5 fotodrachen]:
 > I had assumed it was a consistent cascade or pyramid structure with a
 factor of approximately 2 between each level.

 By default, it does not really work like that, but if you want it to work
 like that, you could probably just edit the `medium_large_size_h` option
 in your database and change it from 0 to 768.  Then the `medium_large`
 size should behave similarly to the `medium` and `large` sizes.

 > But I don't understand the point of generating two nearly identical
 images that differ in size by just one row of pixels.
 > There are surely smarter solutions, such as having both sizes link to
 the same file within a tolerance.

 It is probably possible to write a plugin that does that.  For example,
 you could use the `image_resize_dimensions` filter to skip any images that
 are similar in size to images already generated.

 A simpler alternative would be to simply remove any sizes that you don't
 think are necessary.  There are existing plugins which can do that, e.g.,
 [https://wordpress.org/plugins/disable-media-sizes/ Disable Media Sizes].

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


More information about the wp-trac mailing list