kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Only add screenshot warning if capture was greater than trim size (#3123)
rodzic
40ea2604a7
commit
a1fdeeaa29
|
@ -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 caption on top (overlaid, not extending canvas)
|
||||||
draw = ImageDraw.Draw(stitched)
|
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"
|
caption_text = f"WARNING: Screenshot was {original_page_height}px but trimmed to {capture_height}px because it was too long"
|
||||||
padding = 10
|
padding = 10
|
||||||
font_size = 35
|
font_size = 35
|
||||||
|
|
Ładowanie…
Reference in New Issue