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
- Clone this repository:
git clone https://github.com/PSPDFKit-labs/html-to-image-laravel.git
- Install dependencies:
npm install
- 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.