Remove watermarks from images in a file or a folder using a lightweight Bun CLI.
bun installTo add the command to your PATH:
bun linkTo remove the linked command:
bun unlinkThis project is intended for source/GitHub usage and is not published to npm.
Remove global install:
bun remove -g nanobanana-watermark-cliIf you want to install from source:
git clone https://github.com/bentcc/nanobanana-watermark-cli.git
cd nanobanana-watermark-cli
bun install
bun linknb-dewatermark <path><path>can be a file or a directory.- If
<path>is omitted, the CLI triesfzfagainst the current working directory entries. Iffzfis not available or you exit it, the CLI prompts for a path instead.
If you prefer to run directly without linking:
bun run src/cli/index.ts <path>- Input path expands
~to your home directory. - Directory input is non-recursive and processes files in that folder only.
- Output folder is named
no-watermark:- For a directory input:
<input>/no-watermark - For a file input:
<file directory>/no-watermark
- For a directory input:
- Supported extensions (case-insensitive):
.png,.jpg,.jpeg,.webp. - Size cap: images over 100,000,000 pixels are skipped and reported as skipped.
- If no supported images are found, the CLI errors with
No supported images found.
# Process a directory
nb-dewatermark ./images
# Process a single file
nb-dewatermark ./images/photo.jpgIf you have fzf installed and want to search for the command name:
compgen -c | fzf --query nb-dewatermarkbun testdocs/CODEMAPS/INDEX.md
- This is an open GitHub repository for personal use.
- This is an AI-developed project.
- Watermark removal logic is based on
https://raw.githubusercontent.com/doggy8088/TampermonkeyUserscripts/main/src/NoWatermarkForNanoBananaPro.user.js.
This repository does not accept PRs.