Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Adding hqThumb=1 to the YouTube URL;

    httpv://www.youtube.com/watch?v=_SQkWbRublY#hqthumb=1

    will force WP YouTube Lyte to load the maxresdefault thumbnail.

    You can use the API to enforce this on every Lyte embed, there’s example code for that in wp-content/plugins/wp-youtube-lyte/lyte_helper.php_example

    Hope this helps,
    frank

    Thread Starter Kosta92

    (@kosta92)

    Thank you very much!

    The PHP code is working like a charm, but I really think that you should incorporate it as a setting.

    Plugin Author Frank Goossens

    (@futtta)

    small follow-up; the newest version (1.6.4) will now show maxresdefault if the “HD”-setting was selected.

    frank

    Thread Starter Kosta92

    (@kosta92)

    Can you also add an option to show maxresdefault.jpg, when the Try to force HD option is set to No HD (default)?

    Plugin Author Frank Goossens

    (@futtta)

    Given there are already 3 ways to make wp yt lyte show maxresdefault and (adding hqthumb to the YT url, code & HD vid-setting) and as I’m a big fan of less-instead-of-more-options (and of sensible defaults), I won’t be adding that option (until I change my mind) Kosta92. Sorry ??

    frank

    Thread Starter Kosta92

    (@kosta92)

    Thank you for the answer.
    At least there is the functions.php code that you gave to me.

    Is there anyway to make it display at the sddefault size? The HQ is too small and the max res doesn’t work for all of my videos, but sd would be just right.

    Plugin Author Frank Goossens

    (@futtta)

    change wp-youtube-lyte.php on line 466 from

    $_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['high']['url']);

    to

    $_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['standard']['url']);

    save, clear your wp youtube lyte cache and all should be fine.

    frank

    Thanks again Frank!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Maximum resolution image instead of HQ image.’ is closed to new replies.