Ask all general Gimp related questions here
Post a reply

Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 5:29 pm

GIMP Version: 2.8.8
Operating System: Windows
GIMP Experience: Basic Level



Howdy!

I'm making a desktop clock in Java that will call up a method which randomly selects differently-colored .gif animations representing each digit of the time. These animations should look like they are being drawn on the screen, in a child's handwriting, and in crayon. So I'd want .gifs for 0 through 9, :, am, and pm. And these are rendered atop an image of paper from a Big Chief tablet. When the time changes (every minute), the program repeats this process.

Using a Wacom Bamboo Create, I drew out a "9" in child's handwriting (which looks exactly like my own!) and used Alpha-to-Selection to outline the shape. I used a large pencil in the Dissolve mode to try to get a crayon effect. And after alternating between coloring a bit and duplicating the layer, I have a decent-looking animation of a red "9" being drawn on the screen ... 54 whooping layers!

So ... is there a quick way to change the color so that I don't have to repeat this process for the green, pink, and blue "9," and then the rest of the numbers?

And while we're on the subject, does my strategy sound like the best way to accomplish this?

Thanks!

Edited: GIMP 2.8.8

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 5:33 pm

you could go to color > colorize

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 6:00 pm

Do you have GAP installed? (Gimp Animation Package)
If so use Filter All Layers, plugin/script, it has a Colorize option.

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 6:22 pm

fluffybunny wrote:Do you have GAP installed? (Gimp Animation Package)
If so use Filter All Layers, plugin/script, it has a Colorize option.


Yes! :yes That did it! Thanks!

Now that I'm thinking about it, is there a way to change the sizes of all layers at the same time? I'm not seeing anything in that same menu that looks like an obvious re-sizer.

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 6:27 pm

NFiorentini wrote:
fluffybunny wrote:Do you have GAP installed? (Gimp Animation Package)
If so use Filter All Layers, plugin/script, it has a Colorize option.


Yes! :yes That did it! Thanks!

Now that I'm thinking about it, is there a way to change the sizes of all layers at the same time? I'm not seeing anything in that same menu that looks like an obvious re-sizer.


When you say change the sizes, do you mean Scale or Crop or do you mean the layer's boundaries sizes?
Maybe Image->Canvas Size is your solution, it has a Layers Resize option at the end of the dialog?

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 6:43 pm

NFiorentini wrote:Now that I'm thinking about it, is there a way to change the sizes of all layers at the same time? I'm not seeing anything in that same menu that looks like an obvious re-sizer.

Image/Scale Image resizes everything.

You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 6:53 pm

ofnuts wrote:
NFiorentini wrote:Now that I'm thinking about it, is there a way to change the sizes of all layers at the same time? I'm not seeing anything in that same menu that looks like an obvious re-sizer.

Image/Scale Image resizes everything.

You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.


That did the trick!

Thanks everyone!

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 7:11 pm

NFiorentini wrote:
ofnuts wrote:
NFiorentini wrote:Now that I'm thinking about it, is there a way to change the sizes of all layers at the same time? I'm not seeing anything in that same menu that looks like an obvious re-sizer.

Image/Scale Image resizes everything.

You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.


That did the trick!

Thanks everyone!

Hint: To avoid the jagged edges sometimes caused by scaling, you should try to create your images at the final size you want them to be and use the Zoom (magnification) while creating small images - if it is hard to see your work.

Re: Changing the color of multiple layers of a .gif

Tue Nov 05, 2013 7:21 pm

fluffybunny wrote:Hint: To avoid the jagged edges sometimes caused by scaling, you should try to create your images at the final size you want them to be and use the Zoom (magnification) while creating small images - if it is hard to see your work.


That right there sounds like awesome advice! When I first started learning GIMP two weeks ago, I set my default to the dimensions of my monitor and 300 dpi, figuring that I could go back later to ensmallenate the images as needed.
:oops:

Thanks!

Re: Changing the color of multiple layers of a .gif

Thu Nov 21, 2013 10:52 am

ofnuts wrote:
NFiorentini wrote:You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.


Any way of doing that in one click. I do .gif's... sometimes 100's in on. Does anything else worked chained, besides Scale?? THX

Re: Changing the color of multiple layers of a .gif

Thu Nov 21, 2013 10:56 am

designline wrote:
ofnuts wrote:
NFiorentini wrote:You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.


Any way of doing that in one click. I do .gif's... sometimes 100's in on. Does anything else worked chained, besides Scale?? THX


If you hold the shift key down when your click on the chain it will link all layers.

Re: Changing the color of multiple layers of a .gif

Thu Nov 21, 2013 4:12 pm

designline wrote:
ofnuts wrote:
NFiorentini wrote:You can also chain the layers, and then use the Scale tool on one of them, they will all be scaled to match.


Any way of doing that in one click. I do .gif's... sometimes 100's in on. Does anything else worked chained, besides Scale?? THX

As He4rty said, try Shift clicking and CTRL SHIFT clicking the 'chain' icon (and the 'eye' icon) to set and clear multiple settings, experiment and you will see what I mean.

As ofnuts posted in another thread "All the transform tools (scale/move/rotate/flip/shear/perspective)... can be applied to several layers at the same time if you "chain" them".

Re: Changing the color of multiple layers of a .gif

Sat Nov 23, 2013 5:39 am

Thank You !
Post a reply