Skip to content

PNG generation error - 502 #6996

@eduardjbotha

Description

@eduardjbotha

Description

We've been using the mermaid PNG generation with langgraph, which calls the https://mermaid.ink/img/...?type=png in the background. This functionality seems to be broken when generating a PNG, but works for JPEG

Steps to reproduce

The difference between these two links is only the type query parameter.

Setup

  • Mermaid version: https://mermaid.ink on 24 September 2025
  • Browser and Version: Edge v140.0.3485.81; python requests v2.32.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions