[wp-trac] [WordPress Trac] #50866: Media Uploader Blows Up File Sizes

WordPress Trac noreply at wordpress.org
Thu Aug 6 03:06:49 UTC 2020


#50866: Media Uploader Blows Up File Sizes
-----------------------------------------+-----------------------------
 Reporter:  hvar                         |      Owner:  (none)
     Type:  defect (bug)                 |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  Media                        |    Version:  5.4.2
 Severity:  major                        |   Keywords:  needs-patch
  Focuses:  administration, performance  |
-----------------------------------------+-----------------------------
 Dear Developers,

 this is a flaw in the media uploader that is very simple to reproduce:

 create a 512x512 PNG image with best compression,

 make sure that your wordpress is set to create small, medium, and large
 versions of that image,

 set one of those versions to be also 512x512px, so when you upload a
 512x512px image the media manager will create a copy of that image with
 the same size.

 upload the image.

 wordpress's uploader will not use the original 512x512px PNG image when
 this size is requested by a page, but instead it will use its own
 512x512px image that it has created, and

 compare sizes - the media uploader's PNG image file is at least 3x-4x
 times bigger, and wordpress will use that bigger image file instead of the
 smaller original of the same dimensions, and better compression.

 Please, could you fix that?

 Thank you

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50866>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list