Last updated: Dec-11-2024
On this page:
Overview
This video tutorial shows you how to analyze your images for color accessibility, and apply transformations both to simulate how color blind people may experience your images, and to assist them to distinguish similar-looking colors.
Video tutorial
View the code
You can find the code from this tutorial in GitHub.Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Introduction
0:00 | Cloudinary can help you to see your images through the eyes of a color blind person, both subjectively and objectively, and provides transformations to make them more accessible. |
Why you should care about color accessibility
0:19 | One in twelve men, and one in two hundred women suffer from Color Vision Deficiency. That's a significant proportion of the population who may miss vital information or are unable to engage fully with your site. Cloudinary allows you to experience all the different types of color blindness, by applying simple transformations. |
How to simulate color blindness
0:47 | In a JavaScript environment, install and configure the Cloudinary JavaScript SDK for your product environment, import the simulateColorBlind effect, and apply the effect your image. Here, publicId and colorType are both strings defined elsewhere in the app (see the full list of conditions in the Transformation URL API Reference): |
How to assist with color blindness
1:16 | You can apply stripes or an X-ray effect to images to help color blind people to distinguish one color from another. Import assistColorBlind and apply either the xray() or stripesStrength() version of the effect to your image. For stripes, specify the strength of the stripes from 1 to 100: |
Analyze your images objectively
1:59 | The Accessibility analysis feature lets you analyze your images objectively, to determine which of your images may cause problems for color blind people. Set the accessibility_analysis option to true when uploading images to return a color blind accessibility score, together with an analysis of the issues and the colors that may be the most problematic. See an example in this GitHub repo. |
Keep learning
Related topics
- Learn more about Cloudinary's color blind effects.
- Discover other image and video transformations.
- Check out the Transformation reference for a listing of all Cloudinary transformations, including syntax details and examples.
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
If you like this, you might also like...
Configure the JavaScript SDK
Install and configure the Cloudinary JavaScript SDKRemove Backgrounds and Add Drop Shadows
Remove image backgrounds and add drop shadows in a React appAuto-Tag Assets
Tag assets automatically during upload with AI in Node.js
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
✖️