An open API service indexing awesome lists of open source software.

https://github.com/cloudinary-devs/color-accessibility-upload

Example of accessibility analysis on upload
https://github.com/cloudinary-devs/color-accessibility-upload

Last synced: 10 days ago
JSON representation

Example of accessibility analysis on upload

Awesome Lists containing this project

README

          

# color-accessibility-upload
Example of accessibility analysis on upload. Three images are uploaded to your product environment with `accessibility_analysis` requested. The `eval` feature is used to tag the uploaded image according to the result of the accessibility analysis. If the image has a low score for `distinct_edges`, the asset is tagged 'distinct_edges_issue'. If it has a low score for `distinct_colors`, the asset is tagged 'distinct_colors_issue'.

Note: You may need to contact Cloudinary support to enable accessibility analysis on your product environment.

## Running the script

To run the script:

1. Clone this repo.
1. Open a terminal in the `color-accessibility-upload` folder.
1. Set your Cloudinary API Environment variable:
```
export CLOUDINARY_URL=cloudinary://:@
```
You can find your API Environment variable in the Account Details section of your Cloudinary console.
1. Install Cloudinary:
```
npm i
```
1. Run the script:
```
node index.js
```