• Resolved Gal Baras

    (@galbaras)


    Hi Nikhil,

    According to the Vimeo documentation, it’s possible to get a resized thumbnail with specific dimensions.

    This should help a lot with page speed, considering the default size can be rather large, and gets squeezed into a gallery thumbnail.

    Also, it would be very good to download that thumbnail and add it to the media library, with the video title as its title, the video description as its ALT text, and a lowercase-hyphenated title as its file name.

    Doing this allows you to get the default video thumbnail size, because the media library will create the site’s image sizes for it, including the one defined for gallery thumbnails, which may be cropped.

    When displaying the image on the front end, you can simply use the WordPress function wp_get_attachment_image(), and WordPress will take care of everything needed to make it responsive.

    Please consider making these changes to the plugin.

    Thank you,
    Gal

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello @galbaras,
    Currently video thumbnail size is set dynamic based on ‘woocommerce_gallery_thumbnail’ size.

    Thank You.

    Thread Starter Gal Baras

    (@galbaras)

    This only happens with custom thumbnails, though. When using the original thumbnail, the IMG tag shows the right dimensions, but the image itself is much larger, and it isn’t in the media library.

    Basically, I’m suggesting that ALL images become “custom”. Users should have the option to pick an existing image from the media library or download the video thumbnail Vimeo (or YouTube) into the media library, and then attaching it to the video.

    Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello @galbaras ,
    I’ll implement it in next release.

    Thank You.

    Thread Starter Gal Baras

    (@galbaras)

    Thanks, man.

    BTW, looks like the dimensions can simply be added to the end of the image file name, e.g. https://i.vimeocdn.com/video/1056172885-9a8f7a3ef4dafeca2fbf791067e29a98d274d44c9a50d6c8c44bb9ac4f7862a8-d_138x207 for a 138x207px image.

    This may come in handy, depending on the direction you take with the plugin. For example, you can decide to download the woocommerce_single size, rather than the maximum.

    Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello,

    We have added a feature to auto download video thumbnail and use them for YouTube and Vimeo video.
    Please update the plugin with latest version.

    Thank You.

    Thread Starter Gal Baras

    (@galbaras)

    @nikhilgadhiya Thank you for doing this.

    I’m assuming this happens when products are saved with videos. Is there some way to go over previously-saved products and trigger the replacement of remote images with local ones?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Download video thumbnail in specific size’ is closed to new replies.