Skip to content

Elixir wrapper around wkhtmltoimage tool for converting HTML into images

Notifications You must be signed in to change notification settings

koss-lebedev/html_to_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HtmlToImage

Hex.pm version Hex.pm downloads

Elixir wrapper around wkhtmltoimage tool for converting HTML into images

Installation

  1. Add html_to_image to your list of dependencies in mix.exs:
def deps do
  [{:html_to_image, "~> 0.1.0"}]
end
  1. Ensure html_to_image is started before your application:
def application do
  [applications: [:html_to_image]]
end

Usage

template = "<html><p>Hello, <b>HtmlToImage</b>!</p></html>"
{ :ok, data } = HtmlToImage.convert(template)

Complete API reference is available at hexdocs

About

Elixir wrapper around wkhtmltoimage tool for converting HTML into images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages