Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am slimpickens on github.
  • I am slimpickens_ (https://keybase.io/slimpickens_) on keybase.
  • I have a public key ASAz3eYpnRb3P-tF7aD3IEgp9jSSbwyRVh81jJZHKEJIjwo

To claim this, I am signing this object:

@slimPickens
slimPickens / generateImages.js
Last active December 6, 2018 17:45
Update cover image for video upload
generateImages() {
let height,
aspectRatio = Config.aspectRatio.HEIGHT / Config.aspectRatio.WIDTH;
this.videos.forEach((video, index) => {
let currentVideoData = this.videos[index];
if (this.moduleConfig.isPlaylist) {
currentVideoData = this.videos[index].videoMetadata;
}
// @flow
import BlockNodeWithThumbnail from '../BlockNodeWithThumbnail';
import { defaultAlignment } from '../MediaAlignment';
import type { InlineNode } from '../InlineNode';
import type { MediaAlignment } from '../MediaAlignment';
import type { ImageProperties } from '../Image';
export type McpOptions = {
alignment: MediaAlignment,