# Add one spot of colour to black and white photographs

From Indie Film Backers (https://indiefilmbackers.com/credits). Give this to an AI model or agent that can look at images and run code, with your photos.

## The brief

Every photograph on this site is black and white, and each one carries a single spot of our red: one thing that belongs to the picture's story, like a camera and its tripod, the film on a reel, a coat or a T-shirt, an operator's headset, the bulbs round a marquee, the neon over a cinema's entrance, a theatre sign. Never a face, never something random. It's a nod to the hand-coloured prints of the old picture houses, made with today's tools.

## What to do, for each photograph

1. Look at the photograph and choose **one** object that belongs to its story: an article of clothing, a camera, a reel or strip of film, a ticket, a sign, something a person in it wears or uses. Never a face or skin, and never something random in the background. Say what you chose and why it fits.
2. Outline only that object. Use a segmentation model (for example Segment Anything, or SlimSAM, its small version, which runs on a laptop) with a point on the object, points on anything it should leave out, and a box round it; nothing outside the box is coloured. For lettering on a sign, take the dark (or light) pixels inside a shape drawn round the words instead.
3. Look at the outline at full size. If it spills onto a face, the background or the next object, move the points and try again.
4. Colour the object in #f0343c in OKLab, a perceptual colour space (https://bottosson.github.io/posts/oklab/): every pixel keeps its own lightness from the photograph and takes the colour's hue and chroma, so folds, grain and detail stay. Where that chroma doesn't fit the screen's colours at a pixel's lightness (deep shadow, near white), reduce the chroma and keep the lightness and hue, as CSS gamut mapping does (https://drafts.csswg.org/css-color-4/#gamut-mapping). First move the object's middle tone halfway to the colour's own lightness (a gamma curve on lightness, kept between 0.4 and 4), so a pale object reads as the colour and not as pink, and a dark one as the colour and not as near black. Soften the outline's edge by about a thousandth of the photo's size.
5. Change nothing else in the photograph: no drawing in, no cleaning up, no new detail.
6. Keep the untouched original next to the coloured one.
7. When you publish the photos, say that the colour was added with AI, which model chose and outlined each object, and the date.

## The script

The ready-made script that does steps 2 to 4 is at https://indiefilmbackers.com/tools/spot-colour.mjs. Setup and use are at the top of the file.
