Default thumbnail if video thumbnail doesn't exist
XBleed - December 13, 2007 - 03:46
| Project: | Embedded Media Field |
| Version: | 5.x-1.x-dev |
| Component: | Embedded Video Field |
| Category: | feature request |
| Priority: | normal |
| Assigned: | aaron |
| Status: | closed |
Description
Hello,
Are there any steps that I can take to achieve a default video picture if one can not be created? Right now it looks funky and breaks the page layout on videos that are unable to load a thumbnail image.
Thanks,

#1
working out a general idea of the UI for this. currently, i have a site that does this -- using an imagefield. the tpl file then sniffs for a custom image. if there is one, it displays that rather than the provider's. i think the best way to do this would be to provide an upload textfield for that, although i hate duplicating code.
#2
For provider that doesn't support thumbnail, I did a return 'http://custome-url-thumbnail' in the .inc file for the time being.
I'm currently working the UI for my site at the moment. I have the default upload form, now I'm working on the custom thumbnail for each provider.
#3
Attached is a patch that adds this as a configuration option (while setting thumbnail height and width, you can define a path to the default image). It works off local path, so the image would need to be stored locally.
#4
I applied the patch to emfield on Drupal 5.5. It works. Thanks.
#5
how do I apply the patch?
cheers
#6
Please see the following section of the Drupal Handbook:
Applying Patches
#7
i'll take a look at this patch; thanks jhedstrom. meanwhile, i just committed emthumb to the contrib folder, which will allow editors to override thumbnails on a per node basis.
#8
committed the patch (with a few minor modifications). thanks jhedstrom!
#9
Automatically closed -- issue fixed for two weeks with no activity.