Skip to content

kevintsai1202/GeminiWatermarkRemove

Repository files navigation

Gemini Watermark Remover

License: MIT

English | 繁體中文 | 简体中文 | 日本語 | 한국어

A powerful web tool designed to remove localized watermarks from images generated by Google Gemini. This tool runs entirely in your browser, ensuring your privacy by not uploading images to any server.

🖼️ Demo

Demo Preview 1 Demo Preview 2

✨ Key Features

  • 🚫 Automatic Watermark Removal: Uses a Reverse Alpha Blending algorithm to precisely restore pixels covered by the watermark.
  • 🎨 Custom Logo Support: Upload your own logo to replace the original watermark with adjustable opacity (0% ~ 100%) and size (10% ~ 200%).
  • 🔒 Privacy First: All processing is done locally in your browser; images never leave your device.
  • ⚡ Instant Preview: Upload and process instantly for quick results.
  • 🖱️ Drag & Drop Support: Simply drag images into the window to process them.
  • 👀 Comparison Mode: Long press (or click and hold) the processed image to see the original for comparison.
  • ⚙️ Smart & Manual Modes:
    • Auto Detect: Automatically determines watermark size based on image resolution.
    • Manual Selection: Force "Small" (48px) or "Large" (96px) mode for special cases.
  • 💾 High Quality Download: Download processed images in PNG (Lossless) or JPEG (Compressed) format.
  • 🖥️ Desktop Application: Native Tauri desktop app available for offline use with better performance.
  • 📋 Clipboard Paste: Support directly pasting (Ctrl+V) screenshots or images.
  • 📦 Batch ZIP Download: Automatically packages multiple images into a Single ZIP file.
  • 🌐 Multi-language Support: Interface available in English, Traditional Chinese, Simplified Chinese, Japanese, and Korean.

🛠️ How It Works

This project is implemented using pure JavaScript (Canvas API). It pre-loads the Alpha mask of the Gemini watermark and "reverses" the watermark's effect by calculating the original color values of each pixel, achieving a lossless or near-invisible removal.

🚀 How to Use

  1. Open the Page: Open index.html directly in your browser.
  2. Upload Images: Click the upload area or drag JPG/PNG/WEBP images into it.
  3. View Results: The system will automatically process and display the results.
  4. Adjust Settings (If needed): If the result is not perfect, try switching modes in the dropdown menu ("Force Small" or "Force Large").
  5. Download: Click the "Download" button to save your image.

📦 Installation & Running Locally

This is a static web project requiring no complex backend environment.

  1. Clone the Project:

    git clone https://github.com/kevintsai1202/GeminiWatermarkRemove.git
  2. Enter Directory:

    cd GeminiWatermarkRemove
  3. Run: Open index.html in your browser. Note: Due to browser CORS policies, loading local mask images directly via file:// might fail. It is recommended to run a simple local server, for example using Python:

    # Python 3
    python -m http.server 8000

    Then visit http://localhost:8000 in your browser.

🖥️ Desktop Application (Tauri)

In addition to the web version, we also provide a native desktop application built with Tauri.

Features

  • Offline Support: Works without internet connection
  • Native Performance: Faster file handling via native APIs
  • No Browser Required: Runs as a standalone application

Download

Coming soon - Check the Releases page for installers.

Build from Source

# Prerequisites: Rust, Node.js
cargo install tauri-cli

# Clone and build
git clone https://github.com/kevintsai1202/GeminiWatermarkRemove.git
cd GeminiWatermarkRemove
git checkout feature/tauri-app

# Development mode
cargo tauri dev

# Build installer
cargo tauri build

Output: src-tauri/target/release/bundle/

🙏 Acknowledgements

Special thanks to GeminiWatermarkTool for providing valuable information and inspiration for this project.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors