[wp-trac] [WordPress Trac] #55443: Create WebP sub-sizes and use for output

WordPress Trac noreply at wordpress.org
Thu Mar 2 18:51:15 UTC 2023


#55443: Create WebP sub-sizes and use for output
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-unit-tests needs-dev-note        |     Focuses:
  needs-docs needs-user-docs has-patch           |  performance
-------------------------------------------------+-------------------------

Comment (by Oceanwatcher):

 As far as I can see right now, WP create WebP sub-sizes if I upload WebP.
 Excellent. If I understand it correct, there is only one browser that does
 not display WebP, and that is Safari on OSX 10 or earlier.

 I would actually settle for a solution where I can make a default image to
 be displayed for this browser where I will put "Please switch to a modern
 browser".

 As far as comparing image sizes for formats, this should be done first in
 a desktop program and then on upload. If the uploaded sizes are not
 comparable, then something needs to be changed.

 We need to be able to set the quality for generation of sub-sizes.

 I just took one of my pictures that I developed from RAW to TIFF and
 converted to JPG, PNG and WebP just to see the difference. The original is
 a full 24 MP image, TIFF uncompressed. The results were interesting:

 PNG - 109 MB
 JPG - 16.9 MB
 WebP - 4.8 MB

 This matches with all other tests I have done. PNG is not good for photos.
 Graphics on the other hand is very good with PNG.

 All of the tests were exported in Affinity Photo with quality settings at
 max. This is the right way to do it. I also did a 50% setting between JPG
 and WebP, and the result was the same (ranking, not size).

 Then do an upload and compare the sub-sizes. If the LPG is smaller, then
 the quality settings are not correct.

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


More information about the wp-trac mailing list