Added documentation for the watermark filter (#221)
Added documentation for the watermark filter
This commit is contained in:
parent
06d8031b9d
commit
e9f87eee94
1 changed files with 29 additions and 0 deletions
29
README.md
29
README.md
|
|
@ -191,6 +191,35 @@ The resize filter takes three parameters :
|
||||||
- `$mode`, one of the constants `FFMpeg\Filters\Video\ResizeFilter::RESIZEMODE_*` constants
|
- `$mode`, one of the constants `FFMpeg\Filters\Video\ResizeFilter::RESIZEMODE_*` constants
|
||||||
- `$useStandards`, a boolean to force the use of the nearest aspect ratio standard.
|
- `$useStandards`, a boolean to force the use of the nearest aspect ratio standard.
|
||||||
|
|
||||||
|
###### Watermark
|
||||||
|
|
||||||
|
Watermark a video with a given image.
|
||||||
|
|
||||||
|
```php
|
||||||
|
$video
|
||||||
|
->filters()
|
||||||
|
->watermark($watermarkPath, array(
|
||||||
|
'position' => 'relative',
|
||||||
|
'bottom' => 50,
|
||||||
|
'right' => 50,
|
||||||
|
));
|
||||||
|
```
|
||||||
|
|
||||||
|
The watermark filter takes two parameters:
|
||||||
|
|
||||||
|
`$watermarkPath`, the path to your watermark file.
|
||||||
|
`$coordinates`, an array defining how you want your watermark positioned. You can use relative positioning as demonstrated above or absolute as such:
|
||||||
|
|
||||||
|
```php
|
||||||
|
$video
|
||||||
|
->filters()
|
||||||
|
->watermark($watermarkPath, array(
|
||||||
|
'position' => 'absolute',
|
||||||
|
'x' => 1180,
|
||||||
|
'y' => 620,
|
||||||
|
));
|
||||||
|
```
|
||||||
|
|
||||||
###### Framerate
|
###### Framerate
|
||||||
|
|
||||||
Changes the frame rate of the video.
|
Changes the frame rate of the video.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue