Skip to content

Add a Gotenberg capture driver - #7

Open
hosmelq wants to merge 1 commit into
DirectoryTree:masterfrom
hosmelq:hosmelq/gotenberg-driver
Open

hosmelq wants to merge 1 commit into
DirectoryTree:masterfrom
hosmelq:hosmelq/gotenberg-driver

Conversation

@hosmelq

@hosmelq hosmelq commented Oct 15, 2026 •

Copy link
Copy Markdown

Summary

I already use Gotenberg in my projects, so installing Chrome locally adds browser binaries and system dependencies to the application image. This driver lets applications reuse an existing Gotenberg service for screenshots and PDFs while keeping the same fluent API.

Screenshot::driver('gotenberg')
    ->html($html)
    ->javascript()
    ->pdf()
    ->capture();

Evidence

  • Before: The built-in capture driver required Chrome on the application host.
    After: PNG, JPEG, and PDF captures pass integration tests against Gotenberg, and CI passes.

Merge Danger

Door: Two-way

Blast Radius: Captures

The new driver is opt-in. Gotenberg-specific limitations and optional GD cropping are documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant