Gimp-Forum.net
Problem with a script - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Problem with a script (/Thread-Problem-with-a-script)



Problem with a script - Luciole - 07-13-2022

Hello !

I used to use a script with gimp, a script which doesn't work anymore. It's color-to-alpha All Layers.

In fact, now, when I want to erase a color on all layers, the rest of the image becomes green.

An exemple :

https://zupimages.net/up/22/28/toq5.png

The color I wanted to erase is clear but the rest has become green.

Any idea ?

Thanks for your help !

EDIT : The first time I used this script with that tuto from rich2005 : https://www.youtube.com/watch?v=EG42e_TPVI0&feature=youtu.be
it worked very well but for a moment, it doesn't work anymore.


RE: Problem with a script - Ofnuts - 07-13-2022

Can you attach the script (or give a URL to it)?


RE: Problem with a script - Luciole - 07-14-2022

Of course, I tried your way but it doesn't work : The type of file that you attached is not allowed. Please remove the attachment or choose a different type.

So I gave you the link from rich2005, it's the script called c2a-all-layers.scm

https://www.gimp-forum.net/attachment.php?aid=7856

I found it there : https://www.gimp-forum.net/Thread-Edit-gif?highlight=edit+gif (6 post)

Maybe, I can uninstall the script, then install it again ? I don't know.

Thanks for your help !


RE: Problem with a script - rich2005 - 07-14-2022

@Luciole

Can you post the original image.  If the colour removed is a component of the other colours then they change as well.

[attachment=8291]

In fact I can just see an amount of semi-transparency (the checker pattern) in your posted (green) image.


RE: Problem with a script - Luciole - 07-14-2022

(07-14-2022, 07:46 AM)rich2005 Wrote: @Luciole

Can you post the original image.  If the colour removed is a component of the other colours then they change as well.



In fact I can just see an amount of semi-transparency (the checker pattern) in your posted (green) image.

Of course : https://zupimages.net/up/22/28/x7vu.gif

And the integral image (png) : https://zupimages.net/up/22/28/9p43.png


RE: Problem with a script - rich2005 - 07-14-2022

Thanks.   Using the animation and after Unoptimise to merge the background + Mode -> RGB 

Remove some shade of red.  Red is removed from all colours and the result is the green shade.

You will need to find some other method for removing ...What do you want to remove ? From your other posts the sparkles that run over the words ? That is the only animation in the layers. 

[attachment=8292]

If you want to remove the words then you can apply an overlay. A little bit of artwork / cloning / painting required. ...but then you are left with an animation that is effectively static, not much point, unless this is part of something with more layers.

[attachment=8293]


RE: Problem with a script - Luciole - 07-14-2022

Yes, I want to remove the sparkles above the words, not the words, not the shooting star, really just the sparkles (they are very small). It worked in the past, with your way in the subject : https://www.gimp-forum.net/attachment.php?aid=7856 but now, it's over and I'm not sure to understand why. I mean, I get it with your explanation but It was less complicated before.

Nevermind, thanks for your help !


RE: Problem with a script - rich2005 - 07-14-2022

Ok I can just about see the sparkles if I zoom in the animation.

Your previous post had a solid black background, much different from this one. It is still possible. You take the colour out then you can replace it later.

However for this  animation 40 layers, it will be as quick to go though layer by layer with the clone tool and paint them out.

Nevermind, better luck next time.

edit: Ok a hint at a different method. The sparkles are very small (pixel size and are well spread) If you take a layer that has few sparkles, clone them out, erase the text you want to keep leaving transparency. Use that as an overlay for the whole animation. There are tools for that. I use Saul Goodes script, Ofnuts has a python plugin.  This is the overlay.

[attachment=8294]

And when that is applied, and the animated gif recreated it gives this:

[attachment=8295]