From 11b36aa4c9a2a42f586381c0eb19c0337fa16c8a Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Thu, 4 May 2023 00:32:55 +0200 Subject: [PATCH] svg2png: changing image size For resolution > 8k image's width and height are changed, but the change was not applied to the image itself. Now fixed. --- src/bin/svg2png/svg2png.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/svg2png/svg2png.cpp b/src/bin/svg2png/svg2png.cpp index 745b6c5c..72da8579 100644 --- a/src/bin/svg2png/svg2png.cpp +++ b/src/bin/svg2png/svg2png.cpp @@ -109,7 +109,8 @@ public: w = static_cast(h * scale); } cout << "Warning: The SVG width and/or height values exceed the 8k resolution. " - "To avoid the heap overflow, the conversion to the PNG file made in " << WIDTH_8K << " x " << HEIGHT_8K << " resolution." << endl; + "To avoid the heap overflow, the conversion to the PNG file made in " << w << " x " << h << " resolution." << endl; + picture->size(static_cast(w), static_cast(h)); } } else { picture->size(static_cast(w), static_cast(h));