Skip to content

.brightness() method does not affect brightness #1273

@Gabilabrebi

Description

@Gabilabrebi

Expected Behavior

.brightness() method should affect brightness

Current Behavior

.brightness() method does not affect brightness but blend white with image everywhere

Failure Information (for bugs)

See above

Steps to Reproduce

  1. Use .brightness(0.9) on an .jpg image to go near full brightness
  2. Create image file with writeAsync()

Screenshots

  1. Brightness 0.9 in JIMP (nearly full brightness)
    near_full_brightness_jimp

  2. Brightness 4 in CSS (nearly full brightness)
    near_full_brightness_real

Context

No special conditions

  • Jimp Version: 0.22.10
  • Operating System: Windows
  • Node version: 21.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugthere is a bug in the way jimp behavesreleasedThis issue/pull request has been released.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions