Examples
PHP with Puppeteer HTML to Image Examples
Learn how to use Puppeteer with PHP to:
Screenshot Viewport
The quick reference guide to using PHP and Puppeteer to screenshot the visible viewport.
Screenshot Full Page
Learn how to take a full page screenshot with PHP and Puppeteer.
Screenshot Clip
The quick reference guide to using PHP and Puppeteer to generate clips with specific dimensions.
Screenshot Element
The quick reference guide to using PHP and Puppeteer to generate images of specific css selectors.
Image Size
The quick reference guide to using PHP and Puppeteer to generate images with specific dimensions.
Image Quality
The quick reference guide to using PHP and Puppeteer to generate images with specific quality.
Retina Image
The quick reference guide to using PHP and Puppeteer to generate retina images.
Wait before Screenshot
The quick reference guide to waiting for a page to settle before screenshotting it with PHP and Puppeteer.
HTML to PNG
The quick reference guide to using PHP and Puppeteer to generate PNGs from HTML.
HTML to JPG
The quick reference guide to using PHP and Puppeteer to generate JPEGs from HTML.
HTML to PDF
The quick reference guide to using PHP and Puppeteer to generate PDFs from HTML.
HTML to Base64 Image
Learn how to convert HTML to a base64 image with Puppeteer and PHP.
HTML to Image Buffer
Learn how to get a screenshot as an in-memory buffer with PHP and Puppeteer, without writing to disk.
We created Urlbox to make converting HTML to images easy
Learn more about our website screenshot API.