All Projects → apex → svg_to_png

apex / svg_to_png

Licence: other
Lambda function to convert SVG to PNG using PhantomJS

Programming Languages

javascript
184084 projects - #8 most used programming language

svg_to_png

Lambda function to convert SVG to PNG using PhantomJS.

Installation

Add svg_to_png to your Apex project:

$ git submodule add https://github.com/apex/svg_to_png.git functions/svg_to_png

Deploy it:

$ apex deploy svg_to_png

Try it:

$ apex invoke svg_to_png < functions/svg_to_png/event.json

API

Input:

  • svg (string) base64 SVG input
  • width (number) width of SVG (optional)
  • height (number) height of SVG (optional)

Output:

  • image (string) base64 PNG

Badges


tjholowaychuk.com  ·  GitHub @tj  ·  Twitter @tjholowaychuk

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].