Skip to content

Lines view background appears gray (transparent) - white background missing #492

Description

@ysys143

Problem

The /lines/{username} endpoint SVG previously rendered with a white background, but it now appears with a transparent/no background. This causes the GitHub page background color (#f6f8fa) to show through, making the animation area look gray on GitHub profile READMEs.

Steps to reproduce

Add the following to a GitHub profile README:

<img src="https://render.gitanimals.org/lines/{username}?pet-id=1" width="1200" height="150"/>

The rendered area shows gray instead of white.

Expected behavior

White background (as it used to render before), or a configurable background color parameter for the lines endpoint (similar to how farms has its own background).

Environment

  • Endpoint: /lines/
  • Viewed on: GitHub profile README (light mode)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions