Compare commits

...

1 Commits

Author SHA1 Message Date
dgtlmoon
58319689ce Only add screenshot warning if capture was greater than trim size 2025-04-16 23:31:23 +02:00

View File

@@ -31,7 +31,7 @@ def stitch_images_worker(pipe_conn, chunks_bytes, original_page_height, capture_
# Draw caption on top (overlaid, not extending canvas)
draw = ImageDraw.Draw(stitched)
if original_page_height > capture_height:
caption_text = f"WARNING: Screenshot was {original_page_height}px but trimmed to {capture_height}px because it was too long"
padding = 10
font_size = 35