https://github.com/koss-lebedev/html_to_image
Elixir wrapper around wkhtmltoimage tool for converting HTML into images
https://github.com/koss-lebedev/html_to_image
converter image-processing tool
Last synced: about 2 months ago
JSON representation
Elixir wrapper around wkhtmltoimage tool for converting HTML into images
- Host: GitHub
- URL: https://github.com/koss-lebedev/html_to_image
- Owner: koss-lebedev
- Created: 2017-03-13T14:18:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-25T08:18:02.000Z (over 2 years ago)
- Last Synced: 2025-09-01T15:20:59.591Z (3 months ago)
- Topics: converter, image-processing, tool
- Language: Elixir
- Homepage:
- Size: 9.77 KB
- Stars: 9
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HtmlToImage
[](https://hex.pm/packages/html_to_image)
[](https://hex.pm/packages/html_to_image)
Elixir wrapper around `wkhtmltoimage` tool for converting HTML into images
## Installation
1. Add `html_to_image` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:html_to_image, "~> 0.1.0"}]
end
```
2. Ensure `html_to_image` is started before your application:
```elixir
def application do
[applications: [:html_to_image]]
end
```
## Usage
```elixir
template = "
Hello, HtmlToImage!
"
{ :ok, data } = HtmlToImage.convert(template)
```
Complete API reference is available at [hexdocs](https://hexdocs.pm/html_to_image/api-reference.html)