Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Thumbnail proportional scaling #70

@ElMaxo

Description

@ElMaxo

Hello
There is no convenient way to create proportionally scaled thumbnails now. We can't get original size thumbnail, because default thumbnail dimensions will be set as 150*150. Also, we can't perform custom processing by manual ffmpeg context creation, because many file types failed to open without mime type specification, but mime type can be specified only at private method.
Please, take a look at https://github.com/ElMaxo/thumbnailer/blob/master/thumbnailer.go#L105. I think this is a good solution. Also, proportional scaling can be added by height, not only by width.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions