Skip to content

Pad + Down Desired Functionality #8

@kevinjdolan

Description

@kevinjdolan

I believe there is an ambiguity for the case of mode=pad and scale=down.

The spec states:

mode=pad: the image will be evenly padded with whitespace or transparency to become exactly the specified size while maintaining aspect ratio

scale=down: If the constraints are larger than the source image, the resulting image will use the source dimensions instead, foregoing any cropping, padding, or stretching

I am not clear on the desired behavior for the following two test cases given a target size of 800x600:

Source size of 400x300, should output size be:

  • 800x600 with padding all around?
  • 400x300 with no padding?

Source size of 1200x300, should output size be:

  • 800x600, with padding on sides?
  • 800x200, with no padding?

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