SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class EmbedVideoController

Dynamic cropping for video thumbs

Functions

NameVisibilityDescription
findEdgeYprivateFinds the black edge between $y1 and $y2
thumbpublicDownloads a thumbnail from the video provider

private findEdgeY

unknown $EmbedVideoController->findEdgeY ( mixed $img , mixed $y1 , mixed $y2 );

Finds the black edge between $y1 and $y2

public thumb

void $EmbedVideoController->thumb ( mixed $size , mixed $type , mixed $videoid );

Downloads a thumbnail from the video provider
Trims black bars from the top and the bottom of the image
Resizes and crops to the specified size