render: use the larger value of width/height when scaling too large PNGs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Before this patch, we only checked if a PNGs height was too large, not its width. Which meant that too wide PNGs bled into the text. This is different from how SVGs have been handled, where we scale them using the largest of the width/height values. Update PNG rendering to match SVGs. Also, since PNGs may not be the exact correct size, center them. Closes #313
authored by Daniel Eklöf · committed by Daniel Eklöf · parent 56526e8 · Browse files · 2 files+8 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+8 added−3 removed
- other:+8 added−3 removed