Skip to content

Add --check-contrast flag#37

Merged
danihek merged 2 commits intodanihek:mainfrom
mimvoid:add-contrast-checking
Jul 20, 2025
Merged

Add --check-contrast flag#37
danihek merged 2 commits intodanihek:mainfrom
mimvoid:add-contrast-checking

Conversation

@mimvoid
Copy link
Contributor

@mimvoid mimvoid commented Jul 20, 2025

Adds contrast checking with contrast ratio calculations based on wallust's implementation and WCAG's Technique G18, which closes #33.

It doesn't make much of a difference for some images, but certainly helps with low contrast ones.

Also adds the --check-contrast flag to the documentation.

@mimvoid mimvoid changed the title Add --check-contrast flag #33 Add --check-contrast flag (closes #33) Jul 20, 2025
@mimvoid mimvoid changed the title Add --check-contrast flag (closes #33) Add --check-contrast flag Jul 20, 2025
@mimvoid mimvoid force-pushed the add-contrast-checking branch from 889331c to f93f5eb Compare July 20, 2025 21:48
Copy link
Owner

@danihek danihek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, I tried it and everything looks good to me. Good job! :)

@danihek danihek merged commit 44e34d7 into danihek:main Jul 20, 2025
@mimvoid
Copy link
Contributor Author

mimvoid commented Jul 20, 2025

Thanks for this, I tried it and everything looks good to me. Good job! :)

Hooray, thank you!

@mimvoid mimvoid deleted the add-contrast-checking branch July 20, 2025 22:18
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.

[Feature Request] Contrast checking

2 participants