diff --git a/markimg/markimg.py b/markimg/markimg.py index ab67b58..3174f33 100644 --- a/markimg/markimg.py +++ b/markimg/markimg.py @@ -430,8 +430,9 @@ def run(self, options): max_y, max_x, RGB = image.shape #max_x, max_y = image.size - plt.figure(figsize=(max_x / 100, max_y / 100)) + fig = plt.figure(figsize=(max_x / 100, max_y / 100)) plt.imshow(image) + options.textSize = fig.get_size_inches()[0] * options.textSize img_XY_plane: ImageCanvas = ImageCanvas(max_y, max_x) height = data[row]["origHeight"] ht_scale = height / max_x