4 ms·
Cause EInk display code works nice to just ship it an image type file. So, it's gotta be rasterized before, using Chromium makes that super easy - rather than h
by edoceo 5y ago
Cause EInk display code works nice to just ship it an image type file. So, it's gotta be rasterized before, using Chromium makes that super easy - rather than hand crafting PNG.
I personally make SVG then rasterize but this isn't that terrible.
- jazzyjackson 5y agoI was going down this route once, trying to use Inkscape headless. Is there a SVG-2-bitmap tool you can recommend?
- edoceo 5y agoImagemagick. Does everything.
- deleted 5y ago[deleted]
- jazzyjackson 5y agoSomehow I missed that ImageMagick reads SVG, that is a much shorter dependency stack than selenium! Thanks
- vbezhenar 5y agoCheck out https://github.com/RazrFalcon/resvg https://github.com/RazrFalcon/resvg
- mkl 5y agoAnother one is rsvg: https://www.tutorialspoint.com/unix_commands/rsvg.htm https://www.tutorialspoint.com/unix_commands/rsvg.htm