Fixing Yellow Cast in Scanned Artwork Before a Style Pass

Nov 12, 2026

A lot of scanned artwork arrives in the editor already carrying a defect that people blame on the style pass: a yellow-green wash across the paper, a blue haze sitting in the shadows, or a border that has browned unevenly because the sheet was exposed to light along one edge. Then a style pass is applied, the result looks wrong, and the feeling is that the transfer model is bad at maps or at old paper or at whatever the subject happens to be.

It usually is not. A colour drift in the source gets amplified and redistributed by any pass that reads the image for its palette. Fix the drift first, on the image to image side, and most of the mystifying results disappear.

Why drift gets worse, not cancelled

Style transfer does not simply paint over what is there. It samples colour relationships across the whole frame and re-renders them in a new key. A cast that affects the entire image looks to the model like a deliberate colour choice, so it gets treated as part of the reference palette and pushed further.

This is why a faint yellow tint on a scanned postcard can come back as a saturated ochre sky, and why a slightly blue shadow turns a neutral wall into a cool grey slab after a restyle. The model did what it was told. It just read the defect as intent.

Three specific patterns cause most of the trouble. A whole-frame cast from a scanner that needs calibration. An uneven cast from physical ageing, where the edges have yellowed more than the centre. And a colour shift introduced by whoever last saved the file, often a JPEG that has been re-encoded several times and has drifted in the shadows.

Step one: neutralise the flat cast

Find something in the image that was neutral in reality. Paper is rarely it, because old paper legitimately yellows and a paper white reference will over-correct. Look instead for a grey object, white paint, a metal surface, or a shadow that should be colourless.

Set the neutral point there and pull the overall cast out. Then look at the histogram: if the shadow end is lifted well above zero, you are looking at a haze problem rather than a cast problem. Bring the black point down until the darkest genuine shadow detail touches the edge, but not past the point where detail clips into flat black.

Now check whether the cast was actually uniform. Sample a few points across the frame: a corner, the centre, and the opposite corner. If the numbers disagree beyond a small margin, you have an uneven cast and the next step applies.

Step two: handle uneven ageing with a mask

Uneven yellowing along one edge is common on anything that spent years in a frame or near a window. A global correction will fix the centre and leave the edge stubbornly warm, and a style pass will then produce a visible tint band that looks like a rendering error.

Build a soft gradient mask over the affected edge, sample a small area of the unyellowed paper nearby, and reduce saturation while nudging the hue toward the centre's value. Keep the mask very soft. Hard edges in a correction mask survive into the converted result as a linear seam, which is far more noticeable than the original drift was.

If the ageing is patchy rather than linear, do the same thing with two or three local selections instead of one gradient. It takes an extra few minutes and saves the entire result.

Step three: check the shadows before any pass

Shadow contamination is the defect people miss most often, because the image looks fine on a bright screen. Zoom into the darkest area and check whether the channels are balanced. A blue-violet shadow on a brown wooden object means the shadow is contaminated; a neutral shadow should read close to equal across red, green and blue.

Correcting it is usually a matter of pulling the blue channel down in the shadows only, using a curves adjustment with the endpoint staying anchored in the midtones. Do not desaturate the whole shadow to grey, since real shadows carry colour from their surroundings. You are removing a drift, not the shadow's actual colour.

Step four: run the restyle on the corrected file

Upload the corrected version to the image to image tool and run the style pass. Two things tend to change immediately. The converted palette stays closer to the artist or reference you were matching, and the flat areas stop picking up a tint that was never in the reference.

Compare the result against a version converted from the uncorrected source, if you still have it. The difference is usually most visible in the largest single-colour region: sky, water, a plain wall, or a field of background paper. That region is where a palette-level defect has the most room to spread.

If the corrected pass still shows a tint, the problem is not the source. It is the reference image you are matching, which may itself carry a cast. Check the reference's neutral areas the same way before blaming the model.

Step five: keep a corrected master

Save the corrected file as a separate master, lossless, with a clear name. Every later pass, whether a restyle, an upscale, or a second style attempt, should start from that master rather than from a converted output or a re-encoded JPEG. File formats that use lossy compression drift slightly on each save, and a few round trips in the shadows are enough to reintroduce the exact problem you just fixed.

This also makes comparison honest. If you always start from the corrected master, a result that looks worse is a result of the style choice, not of accumulated file damage, and you can make a decision about the pass itself.

When the drift is in the artwork

One case does not fit the workflow. Sometimes the orange sky is not a defect at all: the original print was genuinely printed that way, and the waxy yellow paper is the artist's chosen ground. Correction in that case does real harm, because it removes part of the work.

The tell is inconsistency. A defect affects paper, shadow and neutral objects alike, and it usually concentrates at the edges or in the darkest areas. A deliberate palette choice sits on the subject and stops at the paper's edge, or it was applied uniformly enough that the whites still read as white.

Look at the whole sheet before you touch a slider. If the paper is yellow but the highlights are clean and the shadows are neutral, the warmth is in the palette and it should survive the conversion. If everything on the page has drifted the same direction, that is a scan defect, and fixing it before the style pass is the difference between a clean restyle and an argument about why the sky changed colour.

Admin