• Resolved DickRaney

    (@dickraney)


    We have the content width set to 850px but the preview thumbnails are only 480px and CSS is scaling it up to 850px so it looks terrible. Is there a way to get larger preview thumbnail images?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP Media

    (@wp_media)

    You can modify the thumbnail preview used with the filter rocket_youtube_thumbnail_resolution.

    The default value is hqdefault, and the accepted values are: default, mqdefault, sddefault, hqdefault, maxresdefault

    so you could do this:

    add_filter( 'rocket_youtube_thumbnail_resolution', function( $thumbnail_resolution ) {
        return maxresdefault;
    } );
    Thread Starter DickRaney

    (@dickraney)

    I added that to my functions file but the preview image is still natural size 480 x 360 and displayed at 757 x 568. So it is not working.

    • This reply was modified 7 years, 8 months ago by DickRaney.
    Plugin Author WP Media

    (@wp_media)

    Sorry about that, the correct filter name is rocket_lazyload_youtube_thumbnail_resolution

    Also note that the maxresdefault thumbnail is not always available from Youtube

    Thread Starter DickRaney

    (@dickraney)

    That did the trick. Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Video preview image quality’ is closed to new replies.