Animation in Transparency not transparent (png)

Hey, I need to export my work with transparent background, but the only rendered who work is Gif format, but I loose a lot of quality.
My problem is that when I make a rendered at the format Animated Png or Webp there is a white screen in the background (not transparent) who are added to the rendering and it is impossible for me to use my animations.

I see some people on the forums who are satisfate with the rendering apng & webp so I thing the problem come from my parameters maybe ?


I specify that I have the latest version of ffmpeg & Krita and I don’t have any white background on my work, there is all transparent pixels in the background

Hope you gonna help me, o/

  1. Can you post those images that you rendered?

  2. Also, what application are you opening them to view them?

  3. Can you also include the kra if possible?

  4. what about video formats like webm?

If you do File → Import Video Animation, then select the previously rendered .apng file and import it, you should see that it has a transparent background.
That is what I see if I make a .apng file with an animation that has transparency.

Thank’s for answers !

I was disappointed by the webm because of the Windows Viewer & I thinking it was bugged but I’ve tried on OBS and it worked thank you !
Windows viewer : https://i.gyazo.com/17e3052bdf910793f4d38b6ae1548291.mp4
OBS : https://i.gyazo.com/301b6ab41eb2ce5f4ad1915f28646fce.mp4

I’ve tried to open my apng & webp with white background that should be transparent on krita, and it opens with the transparent background.

So now I’m gonna use Webm Thank’s again for your answers !

Thanks! An error was instantly detected, without manual format replacement, the export result will be only 1 .png frame
type .apng

and the result will be .apng container with transparent frames.
Unfortunately, this line is automatically reset to .png each time ignoring the Render as: Animated PNG Image setting

@jeannn It depends on the viewer/editor application. Some support transparency and some don’t.

I’m using the 5.0.2 appimage on Linux and it doesn’t matter if I Render the animated png as .apng or as .png file extension.
It defaults to .png as you showed.
When I do File → Import Video Animation, it’s imported with no problems and shows the transparency.
The rendered out .png file may have internal metadata that identifies it as an animated file?
It looks like you’re using Windows. I think that a bug report is needed.

I did a test on Windows VM and it worked fine here. If you do the import test and it fails. Can you try downloading a newer version of ffmpeg and try again? (though don’t delete the old one for future testing)

Win 10. Indeed, the result of .png and .apng has an identical size, but a simple format replacement on the finished file does not allow it to be imported, unlike aPNG, which was renamed in the previously specified way before exporting.

Can you clarify on what you mean by it not being able to be imported?

Also, what about opening it in the web browser?

And lastly, can you try the ffmpeg version upgrade that I mentioned above?

I’m still using ffmpeg 4.4.1 static build for Linux.

Yes, but theirs is around 4.1.1

Ahhh …

In fact, this exported animation, both Krita and the browser imports/opens as a video (regardless of the specified png apng) and the content works correctly.
But import to the VSDC editor is only possible for a file that is declared as apng before export.
png exported by default Explorer Win 10 considers a picture and not a video, the renaming of the finished file does not help
According to the recommendation on the ffmpeg download page for Krita, I used
ffmpeg-5.0-essentials_build
P.S. webm looks correct

So you updated your ffmpeg version? Cause in the screenshot, the ffmpeg version says N-93300-g96451477b9 which is around 4.1.1

Does this happen when you just export video, not both?

Also, you say renaming doesn’t help but just to be on safe side, you do have show extensions enabled correct?

I did a checksum on both, and the result shows the checksum to be the same. So there shouldn’t be a difference :confused:

There were fewer problems than I imagined.

You’re right, I had the old version active.
Version 5 did not give any visible differences.

Yes, renaming the file resolution works correctly, You are right, all 3 file options with .png and .apng resolution are absolutely equal, they can be opened in the bowser or imported back into Krita. Experimentally, it turned out that the video editor refuses to add files with a different name, but identical content (some kind of protection from duplicates) - my statement that “renaming doesn’t help” was erroneous.

But the difference between the .png and .apng extension for the video editor turned out to be significant, actually because of this I considered this export to be broken, and used the “sequence of images” to assemble the video in the editor. And it was only at the suggestion of AhabGreybeard that I realized that everything rests on the absence of “a”

It seems that some applications are sensitive to the exact form of the file extension.
When you choose Animated PNG as the rendered output format then the file extension is set to .png.
I think this needs a bug report.
Can you make one and post a link to it here?

I have no experience in such reports “in form”, but I tried to write briefly and without excess
https://bugs.kde.org/show_bug.cgi?id=451473

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.