{"repo":"piqnt/svgexport","free":true,"listed":false,"github":"https://github.com/piqnt/svgexport","clone":"git clone https://github.com/piqnt/svgexport.git","description":"SVG to PNG/JPEG command-line tool and Node.js module","language":"JavaScript","stars":952,"topics":["svg","png","jpeg","rasterizer","cli","command-line","javascript"],"license":null,"category":"cli-tools","readme_excerpt":"svgexport svgexport is a Node.js module and command-line tool for exporting SVG files to PNG and JPEG, it uses Puppeteer for rendering SVG files. Command Line Installation Installation Issues You might encounter an error while installing because of a puppeteer issue documented here puppeteer/puppeteer#367 To circumvent this, you will need the following command Usage Examples Scale 1.5x proportionally: Scale proportionally to set output width to 32px: Scale proportionally and pad output to set output width:height to 32px:54px: Export -1:-1:24:24 ( left:top:width:height ) of input.svg to output.png: Set output JPEG quality: Use a CSS to style input SVG: By default, Puppeteer has a page load timeout of 30 seconds. This might not be enough for large SVG files. If you want to change the page timeout, set the SVGEXPORT TIMEOUT environment variable to the desired number of seconds. Node.js Module Installation Usage datafile can be an object, an array of objects or a JSON file path, see command line usage for its format. Contributors svgexport was migrated from PhantomJS to Puppeteer by Michael Heerklotz. License Copyright (c) 2016 Ali Shakiba Available under the MIT license Keywords: svg, export, rasterize, converter, png, jpeg, jpg, cli, command-line, inkscape, illustrator, coreldraw","default_branch":null,"files":null,"tree":[],"storefront":"/r/piqnt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/piqnt/svgexport/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}