Re:Stanford CS248: Implement an SVG Rasterizer
by graup on Saturday March 21, 2020 @03:37AM
(#22645194)
The usual approach with canvas for high dpi is to increase the size of the canvas and then scale it back down afterwards: https://codepen.io/graup/pen/jOPpopR
[ Parent
| on HN ]
Re:Stanford CS248: Implement an SVG Rasterizer
by zakjan on Saturday March 21, 2020 @04:14AM
(#22645265)
This downloads 200x200. How to scale it back to 100x100? Ideally so that the image is the same no matter the display where it was exported on. Also I would like to not need to include any image processing libs. The usecase is to export a HTML element (e.g. a chart) and send to another API (e.g. attach it to a report), without downloading.