Dynamic cropping for video thumbs
This is the code documentation for the SproutCMS project
Search documentation |
class EmbedVideoControllerDynamic 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
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|