Black background for aesthetics

How can I make a white background black?

I have some scanned images that currently have a white background. For presentation purposes, I would like to make the background black. I’ve done this before but can’t remember how and I can’t find my notes on it.

(I’ve been through the FAQ and I’ve searched the forum for an answer but it looks like other posts regarding a black background are more sophisticated or technically based than what I would like to know.)

Thanks in advance!

Do you want to invert the picture (Edit>Invert) or do you want to change the background from white to black but keep the signal the same?

M.

Double the wand tool, change parameters if necessary, click in the white area, then Edit>Clear, or Fill, depending on your foreground/background setting.

Hi @biodobe
I allow myself to propose a variation to the proposal of:@MatthieuV @eljonco
(Macro to test on the image deposited).

20200416_Original.tif (768.2 KB)

run("Duplicate...", "title=[Test image_1]");
close("\\Others");
run("Duplicate...", "title=[Test image_2]");
run("Duplicate...", "title=[Test image_3]");
setOption("BlackBackground", true);
run("Convert to Mask");
run("Create Selection");
selectImage("Test image_2");
run("Restore Selection");
setBackgroundColor(0, 0, 0);
run("Clear Outside");
run("Select None");
run("Tile");

Yes, I would like to change the background from white to black but keep everything else exactly as is.

In that case, you may find a solution here:

Jerome Mutterer’s solution is beautifully simple:

run("Invert");
run("HSB Stack");
run("Macro...", "code=v=(v+128)%255 slice");
run("RGB Color");

M.

1 Like