gif 动画图像生成与压缩

WBOY
Release: 2016-06-06 20:32:08
Original
1013 people have browsed it

目前项目有一个这样的需求:把连续的几张jpg格式图片拼接成一张gif动画。单纯这个需求很简单,java/php/python(PIL)等都很好实现这个功能,但是问题来了:
1、生成的gif图片像素质量很差
2、生成的gif图片文件大小很大(3张70K的图片,合成gif文件大小为600K~)
请问图像处理方面的朋友,有什么方案能够让图片既清晰又小巧?

回复内容:

目前项目有一个这样的需求:把连续的几张jpg格式图片拼接成一张gif动画。单纯这个需求很简单,java/php/python(PIL)等都很好实现这个功能,但是问题来了:
1、生成的gif图片像素质量很差
2、生成的gif图片文件大小很大(3张70K的图片,合成gif文件大小为600K~)
请问图像处理方面的朋友,有什么方案能够让图片既清晰又小巧?

制作更好的 GIF: 另一种更好的办法 | Phoenix's island

没什么这方面的经验,提个思路,是否可以考虑将JPG文件通过imagick/PIL等等先压缩一下?70K对JPG来说 也不小呢。

你这个问题解决了吗?我先找能优化gif 调色板取样的算法。

可以看看这个文章:https://segmentfault.com/a/1190000004689570

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!