[wp-trac] [WordPress Trac] #50667: New attachment size is created even the source is smaller

WordPress Trac noreply at wordpress.org
Wed Jul 15 09:42:56 UTC 2020


#50667: New attachment size is created even the source is smaller
--------------------------+-----------------------------
 Reporter:  adam.radocz   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.4.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  performance   |
--------------------------+-----------------------------
 When you upload a very optimized image sometimes the created attachment
 size's file size is larger than the source image. When a new size is
 created its filesize should be checked whether it's really smaller or not.
 Now it just allocates extra space and uses extra bandwidth.

 Sample image: [https://ibb.co/x8LhGC0]

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


More information about the wp-trac mailing list