Skip to content

Commit

Permalink
Added documentation for the watermark filter (PHP-FFMpeg#221)
Browse files Browse the repository at this point in the history
Added documentation for the watermark filter
  • Loading branch information
seblavoie authored and QuingKhaos committed May 2, 2016
1 parent 06d8031 commit e9f87ee
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,35 @@ The resize filter takes three parameters :
- `$mode`, one of the constants `FFMpeg\Filters\Video\ResizeFilter::RESIZEMODE_*` constants
- `$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

Changes the frame rate of the video.
Expand Down

0 comments on commit e9f87ee

Please sign in to comment.