Skip to content

Commit

Permalink
restore transparent background for Pipeline images (#7086)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Feb 26, 2024
1 parent 79b32cd commit 3b8af36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/core/pipeline/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _to_mermaid_image(graph: networkx.MultiDiGraph):
graphbytes = graph_styled.encode("ascii")
base64_bytes = base64.b64encode(graphbytes)
base64_string = base64_bytes.decode("ascii")
url = "https://mermaid.ink/img/" + base64_string
url = f"https://mermaid.ink/img/{base64_string}?type=png"

logging.debug("Rendeding graph at %s", url)
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Restore transparent background for images generated with Pipeline.draw and Pipeline.show

0 comments on commit 3b8af36

Please sign in to comment.