ColrSkeww

Color Blindness Simulation Tool

Simulation

Choose a simulation type to see how the image would look for different types of color blindness.

API Documentation

ColrSkeww provides a simple HTTP API for programmatic color blindness simulation.

Endpoint

POST /upload

Request Format

Send a multipart/form-data request with the following fields:

Supported Deficiency Types

Response

Returns a PNG image showing how the uploaded image would appear to someone with the specified color vision deficiency.

Example Usage

cURL

curl -X POST \
  -F "upload=@image.jpg" \
  -F "deficiency=deutan" \
  http://localhost:3000/upload \
  --output simulated.png

JavaScript (Fetch API)

const formData = new FormData();
formData.append('upload', fileInput.files[0]);
formData.append('deficiency', 'protan');

fetch('/upload', {
  method: 'POST',
  body: formData
})
.then(response => response.blob())
.then(blob => {
  const url = URL.createObjectURL(blob);
  document.getElementById('result').src = url;
});

Error Responses