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,

CommentFileSizeAuthor
#3 emfield.default_thumbnail.patch2.81 KBjhedstrom

Comments

aaron’s picture

Assigned: Unassigned » aaron

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.

vsnguyen’s picture

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.

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new2.81 KB

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.

kdebaas’s picture

I applied the patch to emfield on Drupal 5.5. It works. Thanks.

droople’s picture

how do I apply the patch?

cheers

alex ua’s picture

Please see the following section of the Drupal Handbook:
Applying Patches

aaron’s picture

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.

aaron’s picture

Status: Needs review » Fixed

committed the patch (with a few minor modifications). thanks jhedstrom!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.