The current project has one such requirement: the successive JPG format images are stitched together into a GIF animation. The simplicity of this requirement is simple, Java/php/python (PIL) and so on are very good to achieve this function, but the problem comes:
1, the resulting GIF picture pixel quality is very poor
2, the generated GIF picture file size is very large (3 70K pictures, the synthetic GIF file size is 600k~)
Please ask the image processing friend, what plan can make the picture is both clear and small?
Reply content:
The current project has one such requirement: the successive JPG format images are stitched together into a GIF animation. The simplicity of this requirement is simple, Java/php/python (PIL) and so on are very good to achieve this function, but the problem comes:
1, the resulting GIF picture pixel quality is very poor
2, the generated GIF picture file size is very large (3 70K pictures, the synthetic GIF file size is 600k~)
Please ask the image processing friend, what plan can make the picture is both clear and small?
Making a better GIF: Another Better way | Phoenix ' s Island
There is no experience in this area, a thought, whether you can consider the JPG file through the Imagick/pil, and so on first compressed? 70K is not too small for JPG.
Did you solve the problem? I'll look for an algorithm that optimizes the sampling of the GIF palette.
Can take a look at this article: https://segmentfault.com/a/1190000004689570