Skip to content

Feature request: A way to crop the thumbnail #18

@Munksgaard

Description

@Munksgaard

Thank you for making this nifty little library!

I would like to make thumbnails that are exactly the specified size, e.g. 180x180 pixels. I would like to do so in a way that first resizes the image to kinda-fit, and then crops it to the specified size. I've fiddled a bit with ffmpeg, and I believe this command fits my needs:

ffmpeg -ss 0 -i original.mp4 -frames:v 1 -filter:v 'yadif,scale=180:180:force_original_aspect_ratio=increase,crop=180:180' output.png

Is this something you'd be interested in supporting?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions