question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PNG images have a black background (no transparency)

See original GitHub issue

Description

When trying do display a png image(with transparent background), it shows the background as black, didn’t encouter the issue when trying with the cairo renderer.

Code:

  img = ImageMobject("./dice.png")
  self.play(FadeIn(img))

Results

result

Original image

dice

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
3b1bcommented, Jun 14, 2021

Turned out to be a single character fix, which is fixed in https://github.com/3b1b/manim/pull/1541.

1reaction
TonyCranecommented, Jun 12, 2021

The old version (cairo-backend) support transparent png file, but the new version indeed has this bug. @3b1b , can you take a look at this? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Transparent Image That Appears With a Black ...
When a PNG image with a transparent background is selected from the Recent FIle selector and appears with a black background, the black...
Read more >
Why do PNG files sometimes have 'black' backgrounds ...
Photoshop cannot properly display PNG files that have indexed color for transparency because of the way the transparency data is embedded in the...
Read more >
Why is my PNG being imported with a black background in ...
Is there actually anything behind your PNG in AE? The default background is black, so your transparency will look black unless there is...
Read more >
How to Fix Black Transparent PNG Background in File Explorer
How to Remove Black Background on Transparent PNG Images in File Explorer ; Click View on the menu bar. Click Details and select...
Read more >
Pasted transparent PNG files have a black background
I am experiencing an issue with all transparent png files copied from Chrome and pasted into Photoshop CS6. The background is black rather...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found