Dev Tools · 3h ago
Ditch Puppeteer: Convert HTML to Images in Laravel Without a Browser
Browsershot, the go-to Laravel package for HTML-to-image conversion, requires Node.js and Chrome, causing issues on serverless, shared hosting, and slim Docker setups. An alternative API-based package, html2img-laravel, offloads rendering to a remote service, eliminating the need for a browser on the server. This approach simplifies deployment and reduces server resource demands.
Meridian48 take
The pitch is pragmatic for teams tired of managing browser dependencies, but it trades self-hosting for API reliance, which introduces latency and vendor lock-in.
Read the full reporting
Browsershot Alternatives: HTML to Image in Laravel Without Puppeteer →
DEV Community
laravelhtml-to-image