Deprecate image dimensions in extractImage
This commit is contained in:
parent
2b32688d3c
commit
8c16e7f4c7
2 changed files with 4 additions and 6 deletions
|
|
@ -62,13 +62,11 @@ class FFMpeg extends Binary
|
|||
*
|
||||
* @param int $time The time in second where to take the snapshot
|
||||
* @param string $output The pathfile where to write
|
||||
* @param int $width The width of the image
|
||||
* @param int $height The height of the image
|
||||
* @return \FFMpeg\FFMpeg
|
||||
* @throws Exception\RuntimeException
|
||||
* @throws Exception\LogicException
|
||||
*/
|
||||
public function extractImage($time, $output, $width, $height)
|
||||
public function extractImage($time, $output)
|
||||
{
|
||||
if ( ! $this->pathfile)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
|
|||
$dest = __DIR__ . '/../../files/extract_Test.jpg';
|
||||
|
||||
$this->object->open(__DIR__ . '/../../files/Test.ogv');
|
||||
$this->object->extractImage(2, $dest, 200, 200);
|
||||
$this->object->extractImage(2, $dest);
|
||||
|
||||
$this->probe->probeFormat($dest);
|
||||
|
||||
|
|
@ -59,7 +59,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testExtractImageNoMovie()
|
||||
{
|
||||
$this->object->extractImage(2, 'Path', 200, 200);
|
||||
$this->object->extractImage(2, 'Path');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue