Skip to content

Repository files navigation

Batch Erase

Batch Erase is a private, browser-based tool for removing a repeated date stamp, label, or other same-colour text from a folder of JPG and PNG photos.

How it works

  1. Choose a folder of JPG, JPEG, or PNG photos.
  2. Drag a tight box around the text on a representative photo.
  3. Pick the text colour from the photo, or use the colour control.
  4. Check the purple target-pixel overlay and optionally preview one repair.
  5. Process the folder and download the edited ZIP.

Everything runs in the browser. Photos are not uploaded, stored, or sent to a server.

Matching and repair

The selected region is stored relative to its nearest image corner. For every photo, Batch Erase:

  • scales that corner-anchored region to the photo size;
  • searches nearby for the strongest match, allowing small position changes;
  • compares colours perceptually in CIE Lab, with Precise, Balanced, and Broad ranges;
  • rejects weak or implausibly large matches so uncertain photos stay unchanged;
  • expands the mask slightly to catch antialiasing, outlines, and JPEG halos; and
  • repairs the masked pixels with OpenCV's Telea inpainting algorithm.

Different aspect ratios are supported when the mark remains near the same visual corner. Separate folders work best for photos whose layout changes substantially.

Browser support and format notes

Use a current version of Chrome, Edge, Firefox, or Safari with Web Workers, Canvas, createImageBitmap, and OffscreenCanvas support. Very large folders can approach browser memory limits because the final ZIP must be assembled locally.

JPEGs are re-encoded at quality 0.95. PNG transparency is retained. Image orientation is baked into the edited pixels, and metadata such as EXIF, GPS, camera settings, thumbnails, and ICC profiles is not copied to the output.

About

batch remove a specific coloured element from a bunch of photos.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages