Elixir wrapper around wkhtmltoimage tool for converting HTML into images
Branch: master
Clone or download
Latest commit c677857 Aug 15, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Use more sensible project name Mar 14, 2017
lib Fix module typo Aug 15, 2017
test Add width option Mar 17, 2017
.gitignore Add width option Mar 17, 2017
README.md Add badges Mar 15, 2017
mix.exs Add quality option Mar 20, 2017
mix.lock Exec wkhtmltoimage binary using Porcelain Mar 13, 2017

README.md

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