diff --git a/src/bin/svg2png/svg2png.cpp b/src/bin/svg2png/svg2png.cpp index 72da8579..9792194c 100644 --- a/src/bin/svg2png/svg2png.cpp +++ b/src/bin/svg2png/svg2png.cpp @@ -98,6 +98,8 @@ public: picture->size(&fw, &fh); w = static_cast(fw); h = static_cast(fh); + if (fw > w) w++; + if (fh > h) h++; if (w * h > SIZE_8K) { float scale = fw / fh;