Skip to content

Screenshot content is repeated multiple time and not render true height/width #1065

@MattLoyeD

Description

@MattLoyeD

Hello,

Thank you for this really nice package, however we have a really annoying problem.
Our screenshots are always with this weird repeat bug :
image

Any idea on how to solve this ? Please note that we run tests on WSL2/Ubuntu and Laravel 11 with Sail 8.3. Gotenberg is in the docker-compose.yml on the same network.

We use this code :

          $streamHtml = \Gotenberg\Stream::string('index.html', $html);

          $chromium = \Gotenberg\Gotenberg::chromium(config('app.gotenberg.url'));

          $screenshot = $chromium
              ->screenshot()
              ->html($streamHtml);

          $response = \Gotenberg\Gotenberg::send($screenshot);
          $screenshot = $response->getBody()->getContents();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingchromium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions