Repaint a photo with a gradient map

Every tone in your picture is swapped for a colour on a ramp, dark to light, like the gradient map in Photoshop. Pick a palette, split it into bands, no AI.

Open the editor with this effect

What you get

Made with plain math, not a model

There is no generative model behind this look and nothing was trained on anyone's work. It is a short list of fixed steps running in your browser.

  1. Read the photo: Your photo is read pixel by pixel inside your browser. It is never uploaded, so nothing leaves your device.
  2. Colour ramp: The photo is read as brightness alone and each tone is repainted with a colour from the ramp, darkest to the first colour and brightest to the last.
  3. Same input, same pixels: Every step is fixed math with fixed seeds. Run it again tomorrow on the same photo and you get exactly the same image.

A gradient map throws away a photo's colours and keeps only its light and shade. Then it paints each tone with a colour from a ramp: the darkest parts get the first colour, the brightest get the last, and everything in between slides along. It is one of the most used adjustments in Photoshop, behind heat map portraits, neon posters and moody film grades. Bitgrain does the same in your browser, with ready made ramps, no AI and no upload.

How a gradient map works

First the photo is read as brightness alone, from pure black to pure white, like a black and white print.

Each brightness level is then looked up on a colour ramp. Shadows land on the dark end, highlights on the light end.

Because the light and shade stay the same, faces, edges and texture survive. Only the colours change, which is why a gradient map looks designed rather than filtered.

Split the ramp into a few flat steps and the photo turns into bold areas of colour, close to a screen print or a contour map.

Choosing a ramp

Inferno and Magma run from near black through purple and red to pale yellow. They give the thermal camera, heat map look.

Viridis runs from deep purple through teal to bright yellow, a cool scientific palette that suits nature and architecture.

Sunset, Teal and orange and Gold feel warm and cinematic. Cyberpunk goes neon pink and cyan for posters and covers.

Noir is a cool, inky black and white with a hint of blue, good when you want a mono look with more mood than plain grey.

Photos that suit it

Portraits with clear light and shadow, where the face holds its shape in any colour.

Skylines, plants and landscapes with a good spread from dark to light, so every part of the ramp shows up.

Flat, low contrast photos look muddy. Raise Contrast under Advanced first so the tones spread across the whole ramp.

How to do it in Bitgrain

Open the editor from this page. The Gradient map look is already on the sample, using the Inferno ramp. Drop in your own photo.

Pick a Palette, then lower Amount to let some of the original colour back in. Raise Bands to split the ramp into flat steps, or leave it at 0 for a smooth blend.

Under Advanced, Ramp contrast sets how hard the colours change, and Midpoint moves where the middle of the ramp falls. Contrast, Brightness and Invert adjust the photo before it is mapped.

Looks such as Poster and Faded are quick starting points. Export PNG when you are happy.

Common questions

Is this the same as Photoshop's gradient map?

It works the same way: brightness is mapped onto a colour ramp. Here you choose from ready made ramps instead of building one stop by stop, and it runs in your browser.

What is the difference from a duotone?

A duotone maps the photo onto two colours. A gradient map uses a ramp of several, so you get richer, more varied colour from the same photo.

Does it use AI?

No. Each tone is swapped for a colour from the ramp by a fixed formula, in your browser. Nothing is generated and nothing is uploaded.

Related tools