Skip to content

Bounds checks for some Image methods #599

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

Some parameters of Image methods have smaller legal ranges than their type suggests. This includes:

  • Image.resize (all parameters >= 0)
  • Image.crop (all parameters >= 0)
  • Image.blur (radius >= 0)

Desired solution

Raise OutOfBoundsError and add Raises sections to the docstrings.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions