Skip to content

Automatic CenterCrop to the image smallest size #7530

Open
@nicolas-dufour

Description

@nicolas-dufour

🚀 The feature

The idea here is that centercrop allows for automatic size inference and center_crop to the smallest of HxW.

Motivation, pitch

That allows to keep the most information before resizing the image. We maximize the amount of pixels kept in the center_crop for a given aspect ratio.

Alternatives

No response

Additional context

No response

cc @vfdev-5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions