Forum topic: Is it possible to control the size of the thumbnail

The thumbnail created is the same sizes as the encoded video is it possible to change the size of the thumbnail.

thanks

That's a good idea - I'll put it in the next version.

Okay - resizable thumbnails are now in the current version - 2.0.

Using Imagecache wouldn't be better? (IMHO we don't need duplicated code) :)

At the moment op_video just scales to the thumbnail/player size that is configured, so it is very simple. For more advanced functionality, e.g. thumbnail/player theme functions and Views thumbnail/player fields with configurable dimensions, Imagecache looks ideal.

Sorry, now I see, that you don't resize the images :$ (so this is a support/feature request now - I know how to theme using imagecache, but IMHO everybody can't do it)
But at the moment thumbnails aren't in the transcoded dir - I wrote an issue on drupal.org about it (so I can't theme them :))

This is how it works at the moment: During transcoding, frames are grabbed from the start of the video and at 1/3 of its duration. These are stored as lossless PNGs in the original dimensions of the video. These PNGs are then scaled during page rendering to the configured size and stored as JPEG. The thumbnail size can be reconfigured at any time and will be rescaled. Both the raw PNGs and the scaled JPEGs are stored in the 'transcoded' directory.

The problem is that the thumbnail size is a site-wide setting. Thumbnails need to be scaled individually for views fields and custom rendering. I have created a bounty for Imagecache integration.

There may be something wrong with your installation. I'll reply to your issue.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options