Download video thumbnail in specific size
-
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
- The topic ‘Download video thumbnail in specific size’ is closed to new replies.