FaintMark

v0.1.0
io.github.matchalatteguy/faintmark Checked 3 days ago Published 1 month ago

Invisible per-recipient image watermarks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mark_image

Create one invisibly watermarked copy of an image per recipient label and register them locally. Use before sharing a picture with several people so a copy that turns up later can be traced to the label it was issued under. Writes files only and sends nothing; keeps the source format (JPEG stays JPEG; HEIC becomes JPEG). Accepts JPEG, PNG, WebP or HEIC (HEIC only when the server runs with the heic extra) up to 25 megapixels, with no animation, transparency, CMYK or 16-bit grayscale, and 1 to 100 labels of 1 to 200 printable characters. Returns the output folder and each copy's path, id and war…

ParameterTypeDescription
image_path *stringabsolute path of the image to mark
recipients *array1 to 100 labels, one copy each
formatdefault: the source format
output_dirdefault: a marked/ folder beside the image

check_image

Decode the id in an image (any format Pillow opens, up to 100 megapixels) and look it up in the local registry; designed to work after chat-app recompression or resizing. status is matched (the id is registered to the returned recipient), unregistered (an id was read but it is not in this registry) or not_detected (no readable mark, which says nothing about where the image came from). A match also reports same_image when a stored hash exists, a perceptual-hash comparison with the issued copy: false means they differ beyond the threshold, which cropping or an id copied into another picture can…

ParameterTypeDescription
image_path *stringabsolute path of the image to check
deepbooleantry flips and rotations, then list suspects
filesbooleaninclude file names and paths

list_copies

List registered copies, newest first. files=true adds file names and paths.

ParameterTypeDescription
filesbooleaninclude file names and paths
limitintegernewest N copies