1: size
2: Number of frames
3: Color of screen content
Step 3 optimize
You should understand the size and number of frames.
Let's talk about the content and color of the picture first.
Images are stored in the form of data on the hard disk.
All the contents, colors and so on on the screen are data.
Different colors have different amounts of data.
Therefore, the larger the screen area, the brighter and richer the colors. The more relative data, the more data and the larger file capacity.
In addition: gif animation can support up to 256 colors, and all colors beyond its color gamut will be discarded and modified, which is also the reason why the gif pictures we often make are distorted.
Therefore, the colors of the pictures used to make GIFs should not be too bright and rich.
Optimize
The purpose of optimization is to make files "slim" and easy to transmit and browse in the network.
Optimization is to let the software delete some information of gif to shrink the file, but optimization will make the quality of gif worse.
Generally, the default is the best quality, and no optimization is needed.
Now you probably understand the reasons that affect the capacity and quality of gif.
Let me talk about your confusion again
You said that the 25-frame animation you made was bigger than the 40-frame file made by another person.
Do you make the same gif as him? Are they exactly the same?
As I said before, everything in the image is data, even if your color or size is slightly different from his graphic position in the image.
Then the amount of data is different and the file size is different.
So 40 frames is not necessarily larger than 25 frames.
This depends on the image content, color, etc., because these affect the file size.
So how can we minimize the capacity without messing up the quality of gif?
First of all: clear upload restrictions.
If it is uploading, it is necessary to find out how much space is allowed for uploading.
For example, Baidu only allows gif uploads below 500 K.
Then you should control the file size as close as possible to this range (within 600K) when making it.
If it exceeds too much, no matter how it is adjusted, the quality will be obviously reduced.
It can be adjusted by appropriately reducing the size, reducing the number of colors (not too many colors) and density (not too high color saturation).
Adjust it to around 500K, and then adjust and set a target value with software (such as PS), so that the software can automatically control the deletion of redundant data.
In addition, the effect of the software for making gif is similar.
PS, Ulead GIF animator, Fireworks, etc. It's all the same
Don't download any software experiments (I have tried them all). You can if you have a PS.
Try it yourself. If you have any questions, hi, I ...