Can Animated Gifs Have Transparent Backgrounds
Registered Member
- Posts
- 17
- Karma
- 0
Gif animation should accept a transparent groundwork
Sun Sep 30, 2018 ane:36 pm
I created a 14 frames blitheness. It has no background then there should exist transparency. It is displayed correctly in Krita but when i render the animation equally a gif video or save it equally an epitome the transparent groundwork appeares black. Look here to see that:
https://www.deviantart.com/svenreinold
The profile picture is the animation.
Registered Member
- Posts
- 1269
- Karma
- xi
- Os
Re: Gif animation should have a transparent background
Sunday Sep 30, 2018 2:17 pm
Information technology may be that the browser y'all use can't display a transparent background (information technology probably tin can't). Do you expect to see a checkerboard behind your animated image?
Does your local image viewer show a transparent background? Some can but some can't and they display transparency as black.
If you open the animated .gif in krita, it should show one frame with a transparent background. If so, the animated .gif is fine and it'southward the browser or viewer that can't display transparency. Also, if you open the animated .gif with GIMP, you lot should meet all the layers with transparent background.
KDE Developer
- Posts
- 1793
- Karma
- x
- Bone
Re: Gif animation should have a transparent background
Sun Sep 30, 2018 2:20 pm
Actually, rendering an animated gif with krita uses a particular method (to do the gif-required color reduction as good equally possible) that cannot handle transparency, so it is more that it just isn't possible.
You're better off rendering out the frames every bit pngs with transparency so using a different program to plough information technology into gif.
Registered Member
- Posts
- 1269
- Karma
- eleven
- Bone
Re: Gif blitheness should accept a transparent background
Sun Sep 30, 2018 two:39 pm
@TheraHedwig
I was totally unaware that krita can't produce an animated .gif with transparency. Now I realise that information technology tin can't since I simply tried information technology.
If you examine palette.png, which is left behind afterward you render out to an animated .gif from krita, it has a transparent entry on the grid of palette colours (at the lower right) fifty-fifty if you have no transparency in any frame of the animation. This may be the standard transparency entry for a .gif palette.
I thought that krita produced all the .png intermediate output frames and and so gave them to ffmpeg for rendering to video/.gif and that ffmpeg fabricated the palette. And then is information technology krita or ffmpeg that creates the palette and is information technology krita or ffmpeg that tin can't produce transparency?
P.Due south. is this related to the difficulty that krita has with .gif image output due to the use of the Qt library?
Registered Member
- Posts
- 17
- Karma
- 0
Re: Gif blitheness should accept a transparent background
Lord's day Sep 30, 2018 3:12 pm
ahabgreybeard wrote:It may exist that the browser yous utilise can't display a transparent background (it probably can't). Exercise you lot expect to meet a checkerboard behind your animated paradigm?
Does your local image viewer show a transparent background? Some can only some can't and they display transparency equally black.
If you open the blithe .gif in krita, it should evidence one frame with a transparent background. If so, the blithe .gif is fine and information technology's the browser or viewer that can't display transparency. Also, if you open the animated .gif with GIMP, you should meet all the layers with transparent background.
It'due south non the browser, information technology'south Krita that makes the black background. On deviant art there are Contour animations with transparency. The image displays correctly with the checkerboard pattern but when saved as a gif information technology makes it black.
Registered Fellow member
- Posts
- 17
- Karma
- 0
Re: Gif animation should have a transparent groundwork
Sun Sep 30, 2018 3:fourteen pm
TheraHedwig wrote:Actually, rendering an animated gif with krita uses a particular method (to do the gif-required colour reduction every bit good as possible) that cannot handle transparency, so it is more that it just isn't possible.
You lot're better off rendering out the frames equally pngs with transparency and then using a different plan to plow it into gif.
Every gif image is in 256 colors with i of them transparent. I would apply Blender to make a gif only that is not supported.
Registered Member
- Posts
- 1269
- Karma
- eleven
- OS
Re: Gif animation should take a transparent groundwork
Sun Sep thirty, 2018 4:02 pm
You lot can use GIMP to make an animated .gif (with transparency). Each frame of the blitheness is a layer in GIMP and you can export the layer stack as an animated .gif. I can't remember if GIMP runs the animation starting at the top or the bottom of the layer stack merely a elementary test volition tell you lot that.
However, from krita, you'll have to make sure that the .png output has transparency enabled by first exporting an prototype (or frame) and setting the options to store the alpha aqueduct. Then, y'all can Render the blitheness as an Epitome Sequence which volition produce a sequence of .png files with transparency that can be opened with GIMP. Utilize Open As Layers in GIMP and select all the .png images which volition and then exist opened and placed as private layers in a single GIMP image.
Registered Fellow member
- Posts
- 17
- Karma
- 0
Re: Gif animation should accept a transparent background
Sunday Sep 30, 2018 iv:25 pm
ahabgreybeard wrote:Y'all can use GIMP to make an animated .gif (with transparency). Each frame of the animation is a layer in GIMP and yous can export the layer stack as an blithe .gif. I tin can't remember if GIMP runs the animation starting at the top or the bottom of the layer stack but a simple test will tell you that.
However, from krita, you'll accept to make sure that the .png output has transparency enabled past first exporting an image (or frame) and setting the options to shop the blastoff aqueduct. Then, you can Render the animation equally an Image Sequence which will produce a sequence of .png files with transparency that tin can be opened with GIMP. Utilise Open As Layers in GIMP and select all the .png images which will then be opened and placed as private layers in a single GIMP image.
I used Gimp for my 9 Million views video. And i don't want to use it anymore.
KDE Developer
- Posts
- 1793
- Karma
- 10
- OS
Re: Gif animation should accept a transparent background
Sun Sep 30, 2018 v:28 pm
ahabgreybeard wrote:@TheraHedwig
I was totally unaware that krita can't produce an animated .gif with transparency. Now I realise that it can't since I just tried it.
If you lot examine palette.png, which is left behind after yous render out to an blithe .gif from krita, it has a transparent entry on the filigree of palette colours (at the lower right) even if you have no transparency in any frame of the animation. This may be the standard transparency entry for a .gif palette.
I thought that krita produced all the .png intermediate output frames then gave them to ffmpeg for rendering to video/.gif and that ffmpeg made the palette. So is it krita or ffmpeg that creates the palette and is it krita or ffmpeg that can't produce transparency?
P.Southward. is this related to the difficulty that krita has with .gif paradigm output due to the utilise of the Qt library?
No, it is because nosotros use the palette gen and palette use filters described hither:
http://blog.pkh.me/p/21-high-quality-gi ... fmpeg.html
, and those just don't back up transparency.
The issue with using Qt for animated gif, is that Qt just doesn't take support for blithe gif. We can merely write static gif with it. The problem is that the gif fileformat is a lot more than complicated than what meets the middle.
The easiest for Sven is to either utilize ffmpeg directly for gif, apply something similar gimp for saving out the gif.
Registered Fellow member
- Posts
- 17
- Karma
- 0
Re: Gif animation should take a transparent groundwork
Mon October 01, 2018 eight:02 am
TheraHedwig wrote:
ahabgreybeard wrote:@TheraHedwig
I was totally unaware that krita can't produce an blithe .gif with transparency. Now I realise that information technology tin can't since I just tried information technology.
If you examine palette.png, which is left backside subsequently you return out to an blithe .gif from krita, it has a transparent entry on the grid of palette colours (at the lower right) even if yous have no transparency in any frame of the animation. This may be the standard transparency entry for a .gif palette.
I thought that krita produced all the .png intermediate output frames and then gave them to ffmpeg for rendering to video/.gif and that ffmpeg made the palette. So is it krita or ffmpeg that creates the palette and is it krita or ffmpeg that tin't produce transparency?
P.S. is this related to the difficulty that krita has with .gif prototype output due to the use of the Qt library?
No, information technology is because we use the palette gen and palette use filters described here:
http://weblog.pkh.me/p/21-high-quality-gi ... fmpeg.html
, and those just don't support transparency.
The issue with using Qt for animated gif, is that Qt merely doesn't have support for animated gif. We tin only write static gif with information technology. The trouble is that the gif fileformat is a lot more complicated than what meets the heart.
The easiest for Sven is to either use ffmpeg directly for gif, use something like gimp for saving out the gif.
What do you mean use ffmpeg directly? Krita uses ffmpeg for making gif-animations. What do y'all mean with Ot? I didn't use K'mic. Why are yous using this? Transparency in a gif is as common as colors in a painting. How will you lot brand Logos or Icons without that?
KDE Developer
- Posts
- 1793
- Karma
- 10
- Os
Re: Gif animation should take a transparent groundwork
Mon Oct 01, 2018 12:52 pm
Modern icons and logos are made with svg. Blithe icons and logos are usually either turned into video files to be used in a video. When people upload to a social media site, these days animated gifs get turned into mp4 files.
The reason that we utilize this method is to avert issues with gif files compressing the colors desperately, because Krita has no internal structures for handling indexed colour. GIMP does, if you desire to make an indexed color palette gif with transparency, using GIMP is your best bet.
Registered Member
- Posts
- 17
- Karma
- 0
Re: Gif animation should have a transparent background
Mon Oct 01, 2018 iii:00 pm
TheraHedwig wrote:Mod icons and logos are made with svg. Blithe icons and logos are commonly either turned into video files to be used in a video. When people upload to a social media site, these days animated gifs become turned into mp4 files.
The reason that we use this method is to avert issues with gif files compressing the colors badly, because Krita has no internal structures for handling indexed color. GIMP does, if y'all want to make an indexed color palette gif with transparency, using GIMP is your best bet.
The weird thing is that the palette has a transparent color saved. What is that good for if it isn't used?
KDE Developer
- Posts
- 1793
- Karma
- 10
- Bone
Re: Gif blitheness should take a transparent background
Mon Oct 01, 2018 3:xx pm
svenreinold wrote:
TheraHedwig wrote:Mod icons and logos are made with svg. Animated icons and logos are ordinarily either turned into video files to exist used in a video. When people upload to a social media site, these days blithe gifs get turned into mp4 files.
The reason that we use this method is to avoid problems with gif files compressing the colors desperately, because Krita has no internal structures for handling indexed color. GIMP does, if you want to make an indexed color palette gif with transparency, using GIMP is your best bet.
The weird matter is that the palette has a transparent color saved. What is that good for if it isn't used?
No thought why information technology is not used, you lot should ask the ffmpeg developers.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
© Copyright 2012 KDE Community Forum Squad. All rights reserved.
KDE Community Forums has no liability for any content or post. All messages belong to and are the opinion of their respective authors.
KDE and K Desktop Environment are trademarks of KDE e.V. • For more than details, contact the Forum Administrators.
Can Animated Gifs Have Transparent Backgrounds,
Source: https://forum.kde.org/viewtopic.php?t=154116
Posted by: scottaskins90.blogspot.com
0 Response to "Can Animated Gifs Have Transparent Backgrounds"
Post a Comment