How to set up smartphones and PCs. Informational portal

How to make beautiful animation with Gimp. GIMP Lessons

Viewing 12 posts - 1 through 12 (of 12 total)

    Dear gimp gurus, please tell a newbie! I can not understand.

    How to make such a gif-picture so that three pictures replace each other, but at the same time, each of these pictures also has animation (text appears)?!

    Doing this animation manually is a tedious time (although it is possible.)
    And Gimp for animation is not the best choice. The fiefdom of animation is vector graphics.
    If the task is private, i.e. Since it has to be done once and forgotten, it is better to create a presentation in Impress and export it to a gif.
    (included in the package libreoffice-> http://ru.libreoffice.org/download/)
    At the same time, there are a lot of effects, not only attenuation. Comes out cheap and cheerful.
    If you want to do it in Gimp, then you need to download GAP (GIMP Animation Package)

    You can read about it in Russian:
    http://www.gimpbnksb.ru/forum/14-152-1

    Ladd, thanks! I'll try this plugin now, figure it out :)
    the office is not suitable, because the task is to make a banner.

    Can you just write down the steps to create what I need (if it's long and dreary: D)? and then I'll try to figure it out myself ...
    I just don’t understand what exactly needs to be done in order to achieve the desired result ... as far as I understand, you need to make many layers (sequence - first a layer with a picture, then layers with texts, then a layer of the second picture, etc.) and then upload all this to a gif , So?!

    My first advice is no longer because LibreOffice does not adequately store animation effects in gif format.
    How to manually?
    1. Read some info about gif
    2. Understand what combine / replace mode is
    3. Create a simple animation and export to gif (for example, draw an animation of a bouncing ball, 4-6 frames)
    4. Create a draft of your animation
    5. Experimentally evaluate output file sizes and the need for optimization
    6. Save the image in the mode: Indexed color (i.e. with its own palette)
    7. Deal with Gap, he will help a lot.
    8. For experiments with delay, use any animation. For example:

    If you need to do a lot of animation, go to flash, you can draw more serious videos. The quality of such animation is a cut above.
    P.S. The sequence is correct, just figure out what is the difference between combine and replace, as well as how the alpha channel behaves.

    Disagree. So something was wrong with Flash. Flash is based on vector graphics, fonts on vector graphics, all effects are pure mathematics, file size will be small. The only thing that could increase the size of the final video was incorrectly imported raster images (either you left them in the raster, or the tracing was made with unsuccessful parameters.)

    And it's most likely that with a flash I'm doing something wrong .... :)
    It’s just that earlier there was a partner who was just involved in design and graphics, and I was only in code .... He left, and all his work was put on me, so now I'm studying! :)

    Very pleased with the editor! Intuitively clear, if you sit with him at least a little.

    I sort of figured everything out, just one question appeared - is it possible to somehow make a different delay between the display of individual layers (frames), if I save it in .gif as an animation? Or is the delay set by one parameter for ALL layers at once in the window, when I already export it to .gif ?

    It's very easy to make a different delay:
    1. Prepare a file from several layers
    2. Export to gif with common to all frame delay
    3. Open gif file
    4. In the stack of layers (Layers dialog) next to the name of the layer there will be a delay
    (100 ms by default.) Change this value to 500 ms for any layer, export again to gif and voila, the frame will hang for half a second.
    P.S. I'm not sure that all viewers will support different delays for frames of the same animation.

    WiL-13 wrote:
    That is, a picture appears, then lines of text on it one after another, then a second picture, it also has several lines one after another, etc ...

    If the animation is simple, then it makes more sense to do it in JavaScript or even CSS3.
    And it is really better to refuse to use Flash, the technology is slowly dying.

Animated gifs are ubiquitous on the Internet. Banners, buttons, logos, all of them, using even a small animation, bring some dynamics to the content of the page. There are many different programs aimed specifically at creating animated gif-images. However, most of them can only work with finished images, distorting them or moving them in space. Therefore, it is completely logical to create animated images using a program with which you can also draw. Below I want to show you how easy it is to create an animation effect using GIMP.
However, first, a little about the very idea of ​​an animated gif. The gif format allows you to store an image in multiple layers, each of which can be a separate image. The idea is that for each layer in a gif image, you can set the time during which it will be displayed. Thus, by alternating layers, you can get animation.

So, as mentioned above, to create an animated gif, you need to have several layers (read more about working with layers in GIMP). Let's consider the simplest example. Create a new image. Leave the bottom layer white. On the other four, draw the letters of the word GIMP appearing. The easiest way to do this is to write an inscription on a new layer, then create four copies of this layer and erase unnecessary letters in each of them. This will result in five layers, one of which is the background, the other four represent the letter-by-letter gathering of the word GIMP:


Now save the resulting image as a gif ( File - Save As). After that, GIMP will prompt you to export the image as a gif. At the same time, he will give you the choice of whether to merge the layers into one image or save them as an animation. Because we are interested in the animation, select the second and click " Export". After that, a menu for selecting animation gif options will open:


The first two parameters set the general properties of the gif - these are interlacing And a comment. We are more interested in animation parameters:

- Endless cycle. If this option is enabled, the layers will be interleaved indefinitely, i.e. after the last layer is displayed, the first one will be displayed. If this option is disabled, the animation will play once and stop at the image of the last layer.

- Delay between frames- the time in microseconds that each layer will display by default.

- Frame location- has three modes. First (default) - I Don't Care (Whatever), tells GIMP to dispose of itself. Second - Combine (overlay layers), superimposes one layer on another without removing the previous ones, i.e. unites them. Thus, if you have transparent places in the layers, the previous layers will show through them. By default, GIMP usually uses this mode as the most flexible. I always use it too. Third mode - Replace (one frame per layer), replaces the previous layer with the new one.

Use the default layer layout and set the time between frames to 200. The resulting gif should look like this:


If we now open this gif with GIMP, we will see that in the layers dialog, in the name of each layer, a parameter has been added in parentheses - display time. Thus, by changing the value in brackets, you can set each layer to its own personal display time. For example, set the last layer to 500 so that the full lettering stays on the screen longer.


This was the simplest example of creating an animation. But we always want more! It's time to turn to the special menu item Filters - Animation. It contains three items - Playback, Optimization And Deoptimization. Let's figure out what's what:

- Playback. This item allows us to play a freshly received animation image:


Above is an animated gif simulating the operation of this filter launched by the button Start/Stop. Thus, it is clear that this button starts playing the image and it also stops it. Button rewind returns us to the first frame of the image, the button Step allows you to change frames manually. But all this is far from the most interesting features of this filter. If you click on the image being played, you will see how the cursor changes to a vertical arrow. Now you can drag the animation to any (!) place on the screen, for example, to the browser window, to see how this animation will look on your page. By the way, this feature can also be used for non-animated images.

- Optimization. When I first applied this filter, my delight knew no bounds. The fact is that each layer in an animated gif is, in fact, a separate image, and by saving a gif as an animation, we save several images at once. Thus, with a large number of layers, the size of our animated gif will grow right before our eyes, which is not good, given the desire to minimize the size of images for the web. One way out of the situation may be to manually reduce the size of each layer and destroy the extra pieces. Forget about it!!! Filter Optimization in no time will do everything for you !!!. The filter does approximately the following: it calculates each layer and finds the changed points, relative to the previous one, and leaves only them, changing the layer size to the minimum possible (that is, cutting off at the extreme changed points). In this case, all unchanged points inside this layer will be replaced with transparent ones. Take a newly created gif with GIMP caption and apply this filter.


As you can see, only one letter remained in each layer, and all the white color was replaced with transparent, because. there is no point in dragging it into each layer, having a single white background for all. In addition, one more parameter appeared in the name of the layer in brackets - combine. This is just the mode frame layout. After applying the filter Optimization this mode will always matter combine, i.e. the new frame will be added to the previous ones. Try changing this setting to replace and you will get something like this:


The same effect could be achieved with the mode combine, leaving initially only one letter in each layer and applying the filter Optimization. The difference will be that in this case each layer will contain one black letter and one background color to paint over the previous one. The result is a larger file size. However, often the gain is not so great, and working with replace not very convenient, so I personally never use it.
Among other things, Optimization gives invaluable help when working with layers in which there are blurry images. Because gif contains a maximum of 256 colors, then the blurring of an object on a transparent background is very difficult to display and often it simply disappears. Therefore, I always use a background image in each layer, and I already draw a new element on it. For example, on the website of the company I work for, I needed to display rotating sun glare on the background of the building. When I made each highlight on a new layer separate from the building, when saved as a gif, it lost half of its rays and was no longer blurry. Then I copied the image of the building into each layer, painted highlights on it and optimized it. As a result, I got what I wanted, and the file size decreased three times compared to the non-optimized one!

- Deoptimization. Reverse optimization filter. So far I haven't found a proper use for it, but it's quite possible that it can come in handy when you need to make changes to an optimized image.

So, we figured out the basic principles of creating animated gifs using GIMP. Briefly summing up, we can draw the following conclusions:
1 . Each animation frame is a separate image layer.
2 . Two parameters can be specified for each frame: the display time in microseconds and its type, combine (union) or replace (replacement). Parameters are specified in the layer name and enclosed in brackets, for example: Layer1 (1000ms)(combine).
3 . Layer optimization allows you to significantly reduce the size of the animation image.

That's actually all about the basic techniques for creating animated gif images using GIMP. I hope this little article was helpful to you. If you have any comments or additions, please email me.

gimp

This is a tutorial for Gimp. To be honest, I'm not very good at freehand drawing, but with programs like Gimp, my artistic options have increased. I want to fill akak.ru with my Gimp instructions, and help many people who are fed up with computer toys, wasted time on the Internet and excessive work in WordPade. I hope you will enjoy!

Instruction

Difficulty level: Easy

What you will need:

  • Fantasy
  • Interest

1 step

Shade fight

First, let's create an empty drawing. Then use the flat fill tool. Select the color you want for yourself, hold down ctrl, and move the strip to the bottom. Everything should look like the picture.

2 step

I chose this color

Now we need “color” - “toning”, we select the color, and save. You can choose any color, but keep in mind that in the future there will be a cool logo with your name on this background.

3 step

Snakeskin effect

Now let's work with filters. Click "filters" - "distortions" - "mosaic". Enter your desired settings and save. This effect can be used to create murals, spheres, backgrounds and just for fun.

4 step

It should turn out something like this.

Now we need to type a couple of words. To do this, we take a tool similar to a letter;), select the font we need and write something. I chose my name. After typing, we take the “eppilliptic selection” tool and circle the text so that there is not much space left near the text. Now we take "filters" - "light and shadow" - "supernova". Putting one "star" in the selection area, take the "finger" tool and smudge the star around the text.

5 step

And now the most important thing! Animation. We take “filters” - “animation” - “creating a sphere (ball)”. Leave the settings as they are and save. A new window should pop up. To view the animation, go to "filters" - "animation" - "playback". A new window pops up, you press play, and you watch your creation. By the way, the viewing speed can be adjusted using the lower left corner.

6 step

" option. Now we take the animation called "ripples" We do everything as in the step above. You need to save animations in a special way! Click on "file" - "save as ..." and enter the name of your picture. At the bottom there is a window "select the file type by ...", WE TAKE GIF FORMAT, otherwise you will just have a picture. We save, a new window pops up, and there you will definitely select “save as animation”. And the picture is saved

Top Related Articles