diff --git a/examples/gemini-after.png b/examples/gemini-after.png index 7874550..32e53d5 100644 Binary files a/examples/gemini-after.png and b/examples/gemini-after.png differ diff --git a/unmark/presets.py b/unmark/presets.py index 0472636..c48b6dd 100644 --- a/unmark/presets.py +++ b/unmark/presets.py @@ -10,16 +10,19 @@ def gemini(img: np.ndarray) -> np.ndarray: - """Google Gemini puts a small light sparkle in the bottom-right corner on the - generated image's background. Mirror-patch from bottom-left works cleanly when - the background is near-uniform (typical for portrait avatars).""" + """Google Gemini stamps a bright diamond/sparkle in the bottom-right corner on every + generated image. Inpaint detects the bright pixels and fills from immediate + neighbors, so whatever content sits behind the sparkle (fog, gradient, sky, + vignette) is preserved instead of being replaced with content from the opposite + corner. Works on both uniform and non-uniform backgrounds.""" return remove_watermark( img, - strategy="mirror", + strategy="inpaint", corner="bottom-right", - patch_ratio=0.22, - full_radius_ratio=0.42, - fade_radius_ratio=0.78, + region_ratio=0.20, + brightness_threshold=200, + dilate_iters=4, + inpaint_radius=12, )