PNG images have a black background (no transparency)
See original GitHub issueDescription
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
Original image
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turned out to be a single character fix, which is fixed in https://github.com/3b1b/manim/pull/1541.
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? 😃