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

WordPress Trac noreply at wordpress.org
Thu Jun 7 17:07:23 UTC 2018


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

Comment (by nosilver4u):

 As Gal has noted, you will sometimes get a larger version of the image
 when a resize with the same dimensions are created. WP doesn't compress
 anything really when creating resizes, that's just a side-effect of the
 way the JPG format works. And more often than not, it fails to produce a
 fully optimized image. No fault to WP really, just the way GD and Imagick
 are built, along with the incredible amounts of memory necessary for
 properly optimizing some images.

 While I don't have every IO plugin installed locally, I have all of the
 popular ones, and came up empty on a search for WP_Image_Editor
 extensions. So, as far as I can tell, EWWW IO is the only image
 optimization plugin that even bothers to hook in at the WP_Image_Editor
 level, and it explicitly disables itself when resizes are being created
 for a new upload. Most IO plugins are hooking in after all the resizes are
 done, somewhere like the wp_generate_attachment_metadata filter, where
 they optimize both the resizes AND the original image.

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


More information about the wp-trac mailing list