Fix a Shifted or Discoloured Band in a JPEG by Hand

One band of your repaired photo still shifted or the wrong colour? Fix that one spot by hand in JAR’s assisted mode and keep the rest of the automatic repair.

Quick answer: When the automatic repair gets one spot wrong, select that spot in JAR’s gap list, move the picture back into place with Delete or Insert, correct the colour with the Y, Cb and Cr sliders, and click Apply. Everything JAR got right stays as it is. Then click Repair to save.

Why one spot can go wrong

JAR can’t see what your photo should look like. At every damaged spot it tries possible fixes and keeps the one that lines up best with the rows above. In a plain area (a white wall, a sheet, a dark background) almost any fix lines up, and next to a long straight upright edge a wrong fix can look right. That one spot then comes out shifted, and the band below it stays off until the next damaged spot.

Screenshot: a repair with one band shifted sideways

Fix it step by step

  1. Find the spot. Click the lines in the gap list on the left. Each one shows the picture with that spot marked in red: a solid red step where the fix starts and, when blocks are inserted, a dashed step where the picture continues. The cost column helps: a value much higher than the lines around it is a good place to start. Screenshot: a gap selected, the red marks on the picture, zoomed in
  2. Move the picture back into place. In the panel below the list:
    • Delete removes blocks at the spot: everything after it moves left. Use it when the picture after the spot sits too far to the right.
    • Insert adds blocks at the spot: everything after it moves right. Use it when the picture sits too far to the left.
    • One full row of blocks moves the rest up or down by one row. The ruler along the edges helps you count: the legend says how many blocks one tick is. Screenshot: the Delete and Insert fields with their - and + buttons
  3. Click Apply. JAR rebuilds the preview with your values. The spots further down keep their own fixes and move along with yours.
  4. Correct the colour. If the part after the spot is too dark, too light or off in colour, move the sliders: Y for brightness, Cb from yellow to blue, Cr from green to red. Slide until the part below matches the part above, then click Apply again. The 0 button next to a slider undoes that correction. Screenshot: the Y, Cb and Cr sliders, before and after
  5. Check closely. Tick Zoom on gap to see the rows around the spot at full size, with a red line at the spot.
  6. Let JAR redo the rest, if needed. If your change moved things so far that the fixes further down no longer fit, click Re-plan below: JAR keeps your fix and searches every spot after it again.
  7. Save. Click Repair: JAR saves what the preview shows.

Changed your mind? Reset gap goes back to what JAR chose for that spot.

FAQ

Do I have to fix every gap by hand? No. Usually JAR gets nearly all of them right, and you fix the one or two it couldn’t judge.

What do Row and Col do? They set where the fix starts. JAR places it itself, and you rarely need to change it: only when the damage clearly starts somewhere else than the red mark.

Why is the panel greyed out? Before Analyse there is nothing to edit, and photos with restart markers (some cameras write them) are not supported in assisted mode yet.

Can I see what I changed? Yes: click Original and Repaired to compare at any time.

[Download JAR] [Buy a license]