Make WordPress Core

Opened 3 months ago

Last modified 2 months ago

#54356 new enhancement

Determine and apply best default quality settings for WebP images

Reported by: adamsilverstein Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.8
Component: Media Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

In ticket:35725 we added core support for the WebP image format. On the ticket, we discussed studying the best compression level ("quality") setting to use for WebP images (comment 152, comment 124, comment 117, comment 101). In the end we decided to use the same default quality as JPEG images use for our initial pass.

However, given the differences between the formats (and in anticipation of even newer formats), we should consider what the best default quality setting would be for WebP images.

Some details on how we can test compression settings and arrive at an ideal level are outlined in this post.

Related: #53669

Change History (4)

#1 @sabernhardt
3 months ago

  • Description modified (diff)

#2 @mikeschroder
3 months ago

Hey, thanks for opening this! It's been on my mind as well, but haven't got to testing quite yet.

So far, I've discovered that DSSIM values do change based on version, so we probably need to do new comparisons.

One potential image set can be found here -- my understanding is that this is the one that was used for the resizing quality tests/comparisons.

#3 @adamsilverstein
2 months ago

Some resources:

one other interesting point in Malte's article was that the compression level (for a given format) chosen might depend on the image size. I feel like this is something we might want to look into on a separate ticket.

This ticket was mentioned in Slack in #core-media by mike. View the logs.

2 months ago

Note: See TracTickets for help on using tickets.