SproutCMS

This is the code documentation for the SproutCMS project

class EmbedVideoController

Dynamic cropping for video thumbs

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends EmbedVideoController {
    
    /**
    * 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
    **/
    public function thumb ($size, $type, $videoid) {
        // Method code goes here
    }
    
    /**
    * Finds the black edge between $y1 and $y2
    **/
    private function findEdgeY ($img, $y1, $y2) {
        // Method code goes here
    }
    
}
?>