• Adam

    (@dannythedog)


    First, I used the following snippet:

    // Use a quality setting of 100 for AVIF images.
    function filter_avif_quality( $quality, $mime_type ) {
    if ( 'image/avif' === $mime_type ) {
    return 100;
    }
    return $quality;
    }
    add_filter( 'wp_editor_set_quality', 'filter_avif_quality', 10, 2 );

    Secondly, I run the command wp media regenerate. The result I get is that the images could still be of better quality, and something strange is happening with the colors. Maybe there is some other code I can use to affect the quality?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.