Skip to content

Using v1, resize operation should preserve aspect ratio or it should resize to the set dimension? #93

Closed
@nvartolomei

Description

@nvartolomei

Looking at the code, looks like body, err = img.Process(bimg.Options{ Width: 1000, Height: 1000 }) should actually resize the image to a size contained by the box, preserving aspect ratio, or I understood something wrong?

It my case it actually resizes the image to the fixed 1000x1000px, is this the correct behavior and for the case described above I should do the calculations myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions