I need a way to add a fixed image to every frame of a previously made gif without going through each frame one by one. I have tried the script plugin but I don't know how to use it because I am a noob at scripting. I have looked through other threads and found nothing. Please help.
Thread Rating:
gif making
|
05-27-2017, 06:00 PM
(05-27-2017, 04:58 PM)tybonel13 Wrote: I need a way to add a fixed image to every frame of a previously made gif without going through each frame one by one. I have tried the script plugin but I don't know how to use it because I am a noob at scripting. I have looked through other threads and found nothing. Please help. Welcome to gimp-forum.net No need to re-invent the wheel, there are scripts and plugins to merge animations. Go to http://sourceforge.net/projects/gimp-too...s/scripts/ and get (near bottom of list the plugin interleave-layers-0.4.py That goes in your Gimp profile folder C:\Users\your-name\.gimp-2.8\plug-ins. Open your animation 1. If the animation is optimized I suggest unoptimise it. Filters -> Animation -> UnOptimize 2. Important change the color mode from indexed to RGB Image -> Mode -> RGB And it might look like this The image you want to merge needs to be the same size as the animation and again in RGB mode, so you might need to do some editing there if using an existing graphic. Back to the Animation Start up ofnuts plugin Image -> Interleave layers and choose the Title Mode option (1) Make sure you are at the bottom stack (2) and Layer is the overlay image (3) Run the plugin. It creates a new image. Save as a Gimp .xcf file until certain all editing is complete. Export as a .gif animation. Bound to be snags, come back with more details of your animation (s) / images
05-27-2017, 07:14 PM
That is what I needed to Know. I kept going into filters/python fu to try it. I didn't know it was in image. Thank you, it works beautifully.
05-27-2017, 10:11 PM
(05-27-2017, 07:14 PM)tybonel13 Wrote: That is what I needed to Know. I kept going into filters/python fu to try it. I didn't know it was in image. From http://gimp-tools.sourceforge.net/animationtools.shtml: (05-27-2017, 07:14 PM)tybonel13 Wrote: Thank you, it works beautifully. Your are most welcome
Thank you for putting together the tutorial, I think it's exactly what I need.
However, I'm running into trouble installing the referenced plug-in. I'm running OSX 10.11.6 and Gimp 2.8.22 which I downloaded & installed from gimp.org I found the interleave-layers-0.4.py file from SourceForge and moved it to the /Applications/GIMP.app/Contents/Resources/lib/gimp/2.0/python folder. I closed and re-opened Gimp but can't see the plug-in, even when looking in the plug-in browser. Any suggestions on how to install this plug-in? Is there a different version for OSX? Did I put it in the wrong folder? Thanks! Nevermind, I put it in the wrong folder. Thanks again for the great tutorial (07-19-2017, 12:29 AM)npmancini Wrote: Thank you for putting together the tutorial, I think it's exactly what I need.OK, so I spoke too soon. I am able to get the plug-in to work, but I'm not getting the output I want. This is the gif I'm trying to modify: https://giphy.com/gifs/nba-20k1punZ5bpmM I'd like to change the background from a greenscreen to a static image. Any suggestions?
07-19-2017, 09:45 AM
Not an easy one.
What was a green mask in a video, after mangled into a gif is no longer plain green. Worth a look at what indexed color means. Each pixel is assigned a color from a colormap maximum number of colors 256. You can see this in Gimp Windows -> Dockable Dialogues -> Colormap and it is worth checking. That block of green variants is the 'background' for that image. The one circled, index 201 is the majority. Worth noting the value RGB 28,208,0 You can edit those one at a time and make it more uniform, about 40 to do. That might allow a 'color-to-alpha' plugin to work on all layers. I did try this with not so good results. Tends to make the foreground semi-transparent from those remaining 'green-ish' values. You need something with some tolerance settings. Start with the usual Filters -> Animation -> Unoptimise and Image -> Mode -> RGB I ended up using a plugin G'mic There are versions for Mac, but probably not work with your version. http://gmic.eu/download.shtml You might have to change versions, The Partha MacGimp version comes with lots of pre-installed extras. This is the gmic filter Colors -> Select-replace screenshot: http://i.imgur.com/raHEmBD.jpg The important bits (1) The two colors are the same (does not look like it but they are RGB 28,208,0) (2) output Rejected colors (3) Input/Output All and New Image (4) With the gui at full screen to minimise green speckles I got the settings shown. Play with the tolerance maybe 35 to 45 Apply that and you get a mainly transparent background. Used Ofnuts Interleave-layers twice, once for the background and a second time to overlay that bottom right corner. screenshot: http://i.imgur.com/PJXGYWm.jpg If you get gmic working, try it. My try http://www.mediafire.com/file/eg424h7fpp...back.xcfgz 25 MB Otherwise, back to editing one layer at a time, only a 100 of them
07-19-2017, 12:09 PM
Yes, I tried to hack a quick color-to-alpha-to-all-layers script, but as Rich says, the layers aren't very uniform, and worse, there is a shadow halo around Travolta that makes a proper selection very difficult.
|
« Next Oldest | Next Newest »
|