Skip to content

fix: calculate luminance#12

Open
vixez wants to merge 5 commits intoMankeli-Software:mainfrom
vixez:main
Open

fix: calculate luminance#12
vixez wants to merge 5 commits intoMankeli-Software:mainfrom
vixez:main

Conversation

@vixez
Copy link

@vixez vixez commented Dec 10, 2024

Description

The image package (4.0+) does not return a luminance value between 0 and 1.
Therefore breaking the calculation if it should be light or dark.
This PR manually calculates the normalized luminance instead of using the image package's calculation.

Conventional Type

  • ✨ feat
  • 🛠️ fix
  • ✅ chore
  • 📝 doc
  • 🧪 test
  • ❌ BREAKING CHANGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants