• Resolved shaunatherton

    (@shaunatherton)


    Hi there
    I’ve used this plugin for years to get thumbnails from Vimeo videos to display as a featured image on my site.
    It used to return images that were 640px wide which is a good size for me but in the last couple of weeks it seems to have started returning images that are 295px wide.
    These are too low res for me to use, is there a fix you can help me with? I’m guessing Vimeo has changed something in their API?
    Any help gratefully received
    All the best

    Shaun

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shaunatherton

    (@shaunatherton)

    PS I’ve already tried the following mod from your post a couple of years ago and it doesn’t seem to have any effect:

    The image from the OEmbed API seems to usually have a size appended to the URL like …/1234_1280.jpg and if you just drop the _xxxx part it should give the largest version available. I’m planning for the next version to do this, but you can try it yourself by finding the line

    $result = $result->thumbnail_url;

    and replace with

    $result = preg_replace(“#_[0-9]+\.jpg#”, ‘.jpg’, $result->thumbnail_url);

    I have the same problem. Did you fins a solution or an alternative plugin?

    • This reply was modified 5 years, 9 months ago by resrutt.

    i found a solution for this , open the plugin folder and find the file > php > providers > class-vimeo-thumbnails.php

    then find the line :
    $result = $result->thumbnail_url;
    and replace it with :
    $result = preg_replace('/_[0-9]+x[0-9]+/', '', $result->thumbnail_url);

    Thread Starter shaunatherton

    (@shaunatherton)

    Thanks @mokmok55 that’s much appreciated!
    It worked but in my “class-vimeo-thumbnails.php” file the line I had to replace was

    $result = preg_replace(“#_[0-9]+\.jpg#”, ‘.jpg’,
    $result->thumbnail_url);

    All the best

    Shaun

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vimeo thumbnails have suddenly changed to low resolution’ is closed to new replies.