Skip to content

Lambda function to convert SVG to PNG using PhantomJS

Notifications You must be signed in to change notification settings

apex/svg_to_png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Lambda function to convert SVG to PNG using PhantomJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published