-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
releasedIncluded in a releaseIncluded in a release
Description
Is your feature request related to a problem?
I'd like to be able to adjust the brightness of an image.
Desired solution
Add a new method adjust_brightness to Image that takes one parameter factor and returns the adjusted image. The original should be left unchanged.
Regarding factor:
- A factor in (1, inf) should brighten the image
- A factor in [0, 1) should darken the image (0 turns the image completely black)
- A factor of 1 should keep the image unchanged
Because of this:
- Raise an error if the factor is < 0.
- Warn if the factor is equal to 1.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
releasedIncluded in a releaseIncluded in a release
Type
Projects
Status
✔️ Done