[wp-trac] [WordPress Trac] #56151: Port Dominant Color from performance plugin to core

WordPress Trac noreply at wordpress.org
Tue Jul 19 18:14:44 UTC 2022


#56151: Port Dominant Color from performance plugin to core
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-dev-    |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by pbearne):

 Replying to [comment:2 joyously]:
 > When I was writing a similar function, I noticed that using a 1 x 1
 resize results in a muddy color that is sort of the average of the colors
 in the image, but not any of those colors.
 > The test cases use a lot of single color images to test with, so you
 might not see this.

 Yes, the colors are muddy/muted which is fine for this use

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


More information about the wp-trac mailing list