scratch
/graph.php |
---|
@@ -118,6 +118,8 @@ |
) |
); |
### Do not re-create the thumbnail if it already exists. |
if(!file_exists($userPath.'.'.'jpg')) { |
### Extract thumbnail. |
$ffmpeg = FFMpeg\FFMpeg::create(); |
$video = $ffmpeg->open($CANON_URL); |
@@ -127,6 +129,9 @@ |
) |
); |
$frame->save($userPath.'.'.'jpg'); |
} |
### Get preview image size. |
list($imageWidth, $imageHeight) = getimagesize($userPath.'.'.'jpg'); |
### Probe video for width and height. |