mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 09:05:52 +00:00
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.
This commit is contained in:
parent
4599067bee
commit
11b36aa4c9
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ public:
|
|||
w = static_cast<uint32_t>(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<float>(w), static_cast<float>(h));
|
||||
}
|
||||
} else {
|
||||
picture->size(static_cast<float>(w), static_cast<float>(h));
|
||||
|
|
Loading…
Add table
Reference in a new issue