PSPDFKit-labs / html-to-image-laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert HTML to Image using wkhtmltoimage & Laravel

Getting Started

This repository is an example of how to convert HTML to Image using wkhtmltoimage & Laravel. Check out the accompanying blog post!

Running the Example

  1. Clone this repository:
git clone https://github.com/PSPDFKit-labs/html-to-image-laravel.git
  1. Install dependencies:
npm install
  1. Convert HTML file to an image:
php artisan convert:html-to-image public/index.html public/image.png

Image is saved to the public/image.png file.

Contributing

Please ensure you have signed our CLA so that we can accept your contributions.

About


Languages

Language:PHP 77.1%Language:Blade 17.1%Language:HTML 4.6%Language:Shell 0.9%Language:JavaScript 0.3%