Skip to content

TOP PRIORITY: Check image for a11y before posting #250

Open
@VickiLanger

Description

@VickiLanger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityHacktoberfestRequesting input/assistance from anyonebugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions