Skip to content

Question: Resize output image #16

Closed
@kossa

Description

@kossa

Hi,

Please I want to create thumbnail of video, and I want all thumbs are the same size, here is my code but it does not work :

FFMpeg::fromDisk('local')
            ->open('1.mp4')
            ->addFilter(function ($filters) {
                $filters->resize(new \FFMpeg\Coordinate\Dimension(100, 100));
            })
            ->getFrameFromSeconds(10)
            ->export()
            ->toDisk('local')
            ->save('1.png')
            

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions