It is currently Fri Jun 12, 2026 7:15 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Transparent GIF Animation Exporting
PostPosted: Mon Dec 21, 2015 5:49 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 21, 2015
Posts: 10
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: New User
URL or Image link:

List any relevant plug-ins or scripts:
AnimStack

List any ERROR messages you received:
Cannot save RGB color images. Convert to indexed color or grayscale first.



Hey guys! First post here. I just got into GIMP about a month ago and I've been able to teach myself most of the tricks with a few youtube tutorials of help. I've already downloaded several scripts from this site and I love them!! I ran into an issue and was wondering if anyone could offer some assistance.

I was trying to create a signature for a forum and the one I wanted was animated. I wanted the gif itself to have a transparent background, so I took the gif and separated all 55 frames and edited out the background, and then recreated the gif with the edited frames. Then I wanted to insert that gif into my signature. I already had several images with the "Lightened Only" layer, so I thought I'd select all 55 frames individually and apply the Lightened Only mode to them. The end-effect was great, except for that it wouldn't separate from the other frames, even though I entered (replace) on each of the layers. I then tried (combine) to no avail.

Here is an example of what I was dealing with: http://imgur.com/Qu9VCLi

When I researched how to avoid this, I came across AnimStack and downloaded the script. After applying a [bg] to my background and a [fg] to an extra layer I added, I selected "Process AnimStack Tags" in the Filter-Animation- and it essentially grouped all 55 frames with my background and my foreground. Somehow, this fixed my problem and I had a clean, lightened-only GIF when running the playback! I was so relieved because I had spent hours and hours trying to figure out how to do just that.

Then I tried to export it and ran into the RGB/Indexed/Grayscale issue. I had to index the colors, which therefore grayed out the option to process the Animstack tags. It also didn't allow me to Lighten Only on any of the images and the background was down to only one layer. Very bland looking.

Here is an example of the end-result I want, but without color: http://imgur.com/m2cFJGf

That is essentially what I want it to be, just with color instead! My question is - Is there any way around the Index/Grayscale when exporting GIFs in GIMP? Is there any plug-in or script that would allow me to get the end-result that I want? Are there any other formats similar to GIF that would allow me to save this?

Any feedback or suggestions would be greatly appreciated!!!

Thank you!!


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Transparent GIF Animation Exporting
PostPosted: Tue Dec 22, 2015 7:47 am  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Have you tried sg-combine-background? It is a filter that takes the bottom layer in the stack and essentially adds it as a bg for each layer above. This allows you to create animations on still backgrounds.

Image

Filter is attached. just throw it in your scripts folder and you will find it in the menus under - "/Script-Fu>Animation>Combine background"

Attachment:
combine-bg.scm [3.88 KiB]
Downloaded 284 times

_________________
Image


Top
 Post subject: Re: Transparent GIF Animation Exporting
PostPosted: Tue Dec 22, 2015 12:12 pm  (#3) 
Offline
GimpChat Member

Joined: Dec 21, 2015
Posts: 10
Rod wrote:
Have you tried sg-combine-background? It is a filter that takes the bottom layer in the stack and essentially adds it as a bg for each layer above. This allows you to create animations on still backgrounds.

[ Image ]

Filter is attached. just throw it in your scripts folder and you will find it in the menus under - "/Script-Fu>Animation>Combine background"

Attachment:
combine-bg.scm


I did not try that......... But I just did..... AND IT WORKED PERFECTLY. THANK YOU SO MUCH!!


Top
 Post subject: Re: Transparent GIF Animation Exporting
PostPosted: Tue Dec 22, 2015 5:33 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
stix16 wrote:
Rod wrote:
Have you tried sg-combine-background? It is a filter that takes the bottom layer in the stack and essentially adds it as a bg for each layer above. This allows you to create animations on still backgrounds.

[ Image ]

Filter is attached. just throw it in your scripts folder and you will find it in the menus under - "/Script-Fu>Animation>Combine background"

Attachment:
combine-bg.scm


I did not try that......... But I just did..... AND IT WORKED PERFECTLY. THANK YOU SO MUCH!!

You are very welcome. :bigthup

_________________
Image


Top
 Post subject: Re: Transparent GIF Animation Exporting
PostPosted: Sun Jan 10, 2016 4:58 pm  (#5) 
Offline
GimpChat Member

Joined: Sep 27, 2012
Posts: 11
stix16 wrote:
That is essentially what I want it to be, just with color instead! My question is - Is there any way around the Index/Grayscale when exporting GIFs in GIMP? Is there any plug-in or script that would allow me to get the end-result that I want? Are there any other formats similar to GIF that would allow me to save this?


You just need to do Image - Flatten Layer Groups before converting to Indexed.

Technical explanation:

GIMP cannot automatically convert images with Layer Groups to Indexed mode because Layer Groups are not supported in Indexed mode. The error message is quite unhelpful because normally you can export to GIF even from RGB mode.

Animstack usually turns every frame into a layer group after processing. To actually export the animation to GIF you need to flatten all layer groups or you will get the error. Animstack includes a command to do just that: it's under the menu Image - Flatten Layer Groups.


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group