From 177737fdefb6a3e25871f88a1519fb77dfa71400 Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Mon, 20 Jul 2026 22:52:24 +0200 Subject: [PATCH] fix(watermark): bajar la marca al borde superior del contenido (0.34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Al 40% quedaba demasiado dentro de la imagen; el usuario la quiere más arriba, a un tercio de la altura. 0.34 es el punto donde empieza el contenido en un 16:9 letterboxed: la marca se apoya justo en el borde de la imagen, se lee arriba pero ya pisa footage real, así que recortarla sigue costando cortar el vídeo. --- main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index e08f03d..35631b8 100644 --- a/main.py +++ b/main.py @@ -691,13 +691,14 @@ def render_clip(input_video, final_output_video, output_format="auto"): # # Vertical placement is the whole point: the top and bottom strips of a 9:16 # clip are either black bars or blurred filler (GENERAL layout), so a mark up -# there is cropped away without touching a single pixel of real footage. At 40% -# of the height it sits inside the content band — a 16:9 source letterboxed -# into 9:16 spans roughly 34%-66% — so removing the mark means cutting into the -# picture. Left-aligned, like OpusClip's. +# there is cropped away without touching a single pixel of real footage. A 16:9 +# source letterboxed into 9:16 spans roughly 34%-66%, so 0.34 lands the mark +# right on the top edge of the real picture — high enough to read as "up top", +# low enough that cropping it means cutting into the footage. Left-aligned, +# like OpusClip's. WATERMARK_WIDTH_RATIO = 0.30 WATERMARK_MARGIN_RATIO = 0.05 -WATERMARK_Y_RATIO = 0.40 +WATERMARK_Y_RATIO = 0.34 WATERMARK_OPACITY = 0.85