Skip to content

Gif diagram loses dark --theme 200 #2138

Closed

Description

@HariSekhon

When generating a diagram as a gif to try to get it animated in a format that could upload to LinkedIn which doesn't accept SVG, I've found that the dark theme 200 gets lost and reverts to a white background

Reproduce:

git clone https://github.com/HariSekhon/Diagrams-as-Code diagrams

cd diagrams

d2 karl_marx_test_ideas_in_production.d2 karl_marx_test_ideas_in_production.svg --theme 200 --sketch

d2 karl_marx_test_ideas_in_production.d2 karl_marx_test_ideas_in_production.gif --theme 200 --sketch --animate-interval 500

Compare karl_marx_test_ideas_in_production.svg VS karl_marx_test_ideas_in_production.gif.

Open both images quickly on Mac:

open karl_marx_test_ideas_in_production.svg

open karl_marx_test_ideas_in_production.gif

ps. --animate-interval also doesn't work as per #1666

Activity

  1. alixander commented on Oct 5, 2024

    @alixander
    Collaborator

    I can't reproduce. My d2 version is on master but it's not diverged much from the latest release (0.6.7). What version are you on?

    Screenshot 2024-10-05 at 10 31 59 AM Screenshot 2024-10-05 at 10 31 53 AM Screenshot 2024-10-05 at 10 31 46 AM
  2. HariSekhon commented on Oct 5, 2024

    @HariSekhon
    Author

    I was using 0.6.5.

    I've just upgraded to 0.6.7 and that seems to have fixed it.

    I should have checked my version and latest before raising this.

    Thanks.

  3. alixander commented on Oct 5, 2024

    @alixander
    Collaborator

    No worries, appreciate your bug reports!

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

Metadata

Metadata

Assignees

No one assigned

    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