[wp-trac] [WordPress Trac] #32437: Uploaded images are still saved as a "resized" duplicate

WordPress Trac noreply at wordpress.org
Sat Sep 7 01:33:27 UTC 2019


#32437: Uploaded images are still saved as a "resized" duplicate
-------------------------------------------------+---------------------
 Reporter:  wpdennis                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.3
Component:  Media                                |     Version:  4.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing 2nd-opinion  |     Focuses:
-------------------------------------------------+---------------------

Comment (by azaozz):

 In [changeset:"46077" 46077]:
 {{{
 #!CommitTicketReference repository="" revision="46077"
 Media: Improve handling of cases where an uploaded image matches exactly a
 defined intermediate size. In most of these cases the original image has
 been edited by the user and is "web ready", there is no need for an
 identical intermediate image.

 Introduces the `wp_image_resize_identical_dimensions` filter so plugins
 and themes can determine whether a new image with identical dimensions
 should be created, defaults to false.

 Props wpdennis, HKandulla, galbaras, azaozz.
 See #32437.
 }}}

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


More information about the wp-trac mailing list