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
- Host: GitHub
- URL: https://github.com/cloudinary-devs/color-accessibility-upload
- Owner: cloudinary-devs
- Created: 2023-11-29T11:09:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T14:46:36.000Z (over 2 years ago)
- Last Synced: 2025-10-30T03:12:21.730Z (6 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```