Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md with a working resize example #343

Merged
merged 1 commit into from Dec 20, 2021

Conversation

injektion
Copy link
Contributor

The resize example as demonstrated would fail because was expecting VideoInterface to be set before call:

TypeError
FFMpeg\Filters\Video\ResizeFilter::apply(): Argument #2 ($format) must be of type FFMpeg\Format\VideoInterface, ProtoneMedia\LaravelFFMpeg\FFMpeg\NullFormat given, called in /var/www/html/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/AbstractVideo.php on line 161

Just updated the example to a cut-and-pastable working sample

The resize example as demonstrated would fail because was expecting VideoInterface to be set before call:

```
TypeError
FFMpeg\Filters\Video\ResizeFilter::apply(): Argument protonemedia#2 ($format) must be of type FFMpeg\Format\VideoInterface, ProtoneMedia\LaravelFFMpeg\FFMpeg\NullFormat given, called in /var/www/html/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Media/AbstractVideo.php on line 161
```
Just updated the example to a cut-and-pastable working sample
@pascalbaljet
Copy link
Collaborator

Thanks!

@pascalbaljet pascalbaljet merged commit ca85383 into protonemedia:master Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants