From 5c222e6a52d7271ff0a96fd4cb344a3baa5c39b3 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Mon, 16 Mar 2020 16:55:10 -0700 Subject: [PATCH] markup: debug images draw in red for visibility --- markup/img.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/markup/img.py b/markup/img.py index 09bb72b..c6359be 100644 --- a/markup/img.py +++ b/markup/img.py @@ -123,7 +123,7 @@ def write_inklist(obj, mediabox, path): draw = ImageDraw.Draw(img, 'RGBA') for segment in obj['InkList']: - draw.line(segment, 'black', 3) + draw.line(segment, 'red', 3) # account for the difference in coordinate systems # between pdf and images. @@ -142,9 +142,9 @@ def write_square_or_circle(obj, mediabox, path): draw = ImageDraw.Draw(img, 'RGBA') if obj["Subtype"] == LIT('Square'): - draw.rectangle(obj['Rect'], fill=None, outline='black', width=3) + draw.rectangle(obj['Rect'], fill=None, outline='red', width=3) else: - draw.ellipse(obj['Rect'], fill=None, outline='black', width=3) + draw.ellipse(obj['Rect'], fill=None, outline='red', width=3) # account for the difference in coordinate systems # between pdf and images.