Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOP PRIORITY: Check image for a11y before posting #250

Open
VickiLanger opened this issue Oct 30, 2020 · 2 comments
Open

TOP PRIORITY: Check image for a11y before posting #250

VickiLanger opened this issue Oct 30, 2020 · 2 comments
Labels
Accessibility bug Something isn't working Hacktoberfest Requesting input/assistance from anyone help wanted Extra attention is needed

Comments

@VickiLanger
Copy link
Owner

VickiLanger commented Oct 30, 2020

Describe the bug
Sometimes text just isn't legible and therefore not accessible.

Expected behavior
Background and text should be verified to be WCAG compliant together before being allowed to post

Screenshots

image with text that is def not accessible with the background

https://twitter.com/lgbtqotd/status/1321920117551353856

Additional context

A suggested fix I was given:

  • read rgb value of pixel wit python pillow
  • then use the map function to apply the side by side contrast formula
  • Then use map again to set the pixels meeting the contrast threshold to white and the rest to black, then flatten the numpy array and feed back to the image library to make a contrast image.

Don't forget to follow the bot on Twitter to see the hard work you put in.

@VickiLanger VickiLanger changed the title Check image for a11y before posting TOP PRIORITY: Check image for a11y before posting Oct 30, 2020
@VickiLanger VickiLanger added bug Something isn't working Hacktoberfest Requesting input/assistance from anyone help wanted Extra attention is needed Accessibility labels Oct 30, 2020
@VickiLanger VickiLanger pinned this issue Nov 17, 2020
@LuNoX
Copy link

LuNoX commented Jan 12, 2023

@VickiLanger do you still need help with this? :)

@VickiLanger
Copy link
Owner Author

@VickiLanger do you still need help with this? :)

This definitely still needs work. You're welcome to it if you like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility bug Something isn't working Hacktoberfest Requesting input/assistance from anyone help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants