From 4f6de126fe75f27cb74dfba438622405f52a39f3 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Fri, 10 Dec 2021 12:44:32 +0100 Subject: [PATCH] small adjustment in export selection --- .../fablabchemnitz/export_selection_as/export_selection_as.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/export_selection_as/export_selection_as.py b/extensions/fablabchemnitz/export_selection_as/export_selection_as.py index 048105d8..08e47523 100644 --- a/extensions/fablabchemnitz/export_selection_as/export_selection_as.py +++ b/extensions/fablabchemnitz/export_selection_as/export_selection_as.py @@ -267,7 +267,7 @@ class ExportObject(inkex.EffectExtension): try: img = Image.open(png_export) except Image.DecompressionBombError as e: #we could also increse PIL.Image.MAX_IMAGE_PIXELS = some large int - self.msg("Error. Image is too large. Reduce DPI and try again!") + self.msg("Error. Image is too large ({} x {} px). Reduce DPI and try again!".format(self.svg.uutounit(bbox.width), self.svg.uutounit(bbox.height))) exit(1) output_buffer = BytesIO() img.save(output_buffer, format='PNG')