[wp-trac] [WordPress Trac] #57003: Compress original image upload to avoid uncompressed images

WordPress Trac noreply at wordpress.org
Fri Nov 4 20:04:39 UTC 2022


#57003: Compress original image upload to avoid uncompressed images
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion needs-patch needs-unit-  |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @azaozz Would love to get your input on this idea.

 Related question about #48736: Reading through that ticket, it appears we
 simply do not generate a scaled-down PNG because the image could be
 larger. Shouldn't we introduce a file comparison check like I'm proposing
 here in any case? This way we could potentially remove that condition to
 not attempt PNG downscaling and instead make a decision afterwards which
 image is "better".

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


More information about the wp-trac mailing list