From 1d13af7295fc9ad5c4da7f40479596b8b84caf39 Mon Sep 17 00:00:00 2001 From: joseph-r-hamilton Date: Thu, 30 Jul 2020 23:07:34 -0500 Subject: [PATCH] Fix bug when possibly_enlarge altering height and width corrupts future dataframe conversions --- dataframe_image/_screenshot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dataframe_image/_screenshot.py b/dataframe_image/_screenshot.py index 65cb3ed..c963c51 100644 --- a/dataframe_image/_screenshot.py +++ b/dataframe_image/_screenshot.py @@ -163,6 +163,8 @@ def finalize_image(self, img): return img_str def run(self, html): + self.ss_width = 1400 + self.ss_height = 900 self.html = self.css + html img = self.take_screenshot() img_str = self.finalize_image(img)