By Louis, developer of Photo Quality Enhancer. AI assisted with drafting.
The white shirt in a scanned family portrait looks brighter after editing. At thumbnail size that seems like an improvement. At full size the collar and the fold beneath it have become one flat shape. Before sharpening the whole scan, find out whether those two shades are still in the file.
Check the same piece of fabric twice
- Keep the original scan. In GIMP, open a copy and zoom until you can see both sides of a pale fold. Pick a patch inside the fabric, away from the paper border, buttons and dust. An empty border can contain thousands of white pixels and tell you nothing about the shirt.
- With Rectangle Select, draw a box across the fold. Note its position and size from Tool Options. Open Colors → Info → Histogram and select Value. Look at the right edge, then use the Color Picker to sample the two sides of the fold. For a grayscale scan, for example, 246 and 250 are two distinct tones even though both look nearly white.
- Duplicate the image, keep the rectangular selection and try Colors → Levels. Move the white input point down gradually. Watch the preview. If both samples reach 255 and the fold disappears, undo the adjustment or move the white point back. Dragging the white output point darker after the merge only turns the flat patch gray.
- Export a copy, reopen it and inspect the same patch. If the output was enlarged exactly 2× with no crop, double all four selection values (left, top, width, height). Compare the two files at the same displayed size. On a colour photograph, also inspect the red, green and blue channels individually. A red detail can flatten while the other channels still vary.
Reproduce the failure on a tiny grayscale swatch
If you don’t have a suitable scan handy, this free local exercise uses Python and Pillow. In a fresh virtual environment, install Pillow with python -m pip install Pillow. Save the following as shirt_fold.py and run python shirt_fold.py.
from PIL import Image fold = Image.new("L", (80, 40), 246) fold.paste(250, (40, 0, 80, 40)) for white_point in (255, 248, 245): table = [min(255, round(level * 255 / white_point)) for level in range(256)] result = fold.point(table) name = f"fold-white-{white_point}.png" result.save(name) with Image.open(name) as saved: left, right = (saved.getpixel((x, 20)) for x in (20, 60)) print(name, left, right, saved.histogram()[255]) Read the last three numbers as the left tone, the right tone and the count of pure-white pixels. With the white point at 255, the result is 246, 250, 0. At 248 it is 253, 255, 1600: one half has reached white, but the boundary survives. At 245 it is 255, 255, 3200. The saved patch now contains no evidence of where the fold was. Return to the original to recover it.
I use the same collar check when reviewing a scan enlarged with Photo Quality Enhancer. A patch of pure white is normal in a catchlight or a blank margin. The reason to revisit an edit is a specific detail you can see in the source and can no longer distinguish in the export.

