ccseer / Seer

Seer bug report
http://1218.io
451 stars 45 forks source link

Bug: 动态PNG文件无法预览动画 #296

Closed VierSNV closed 2 years ago

VierSNV commented 3 years ago

动态PNG文件无法预览为动画,只显示第一帧,除非扩展名重命名为.apng 测试样本 https://apng.onevcat.com/assets/elephant.png

ccseer commented 3 years ago

默认是根据后缀名来的。 如果后缀名的格式能读到数据就说明数据没问题。

ccseer commented 3 years ago

目前所有 带动画效果的 jpg 和 png 都是按静态处理的。

VierSNV commented 3 years ago

这里可以优化吗,对PNG加一个是否为动画的判断?

ccseer commented 3 years ago

试了下。 目前不支持。

以后再看吧

On Thu, May 6, 2021 at 6:12 PM VierSNV @.***> wrote:

这里可以优化吗,对PNG加一个是否为动画的判断?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ccseer/Seer/issues/296#issuecomment-833407174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZZIHTWAEBARN5Z5SHP54TTMJTPXANCNFSM44C3DVTQ .

ccseer commented 2 years ago

这个就这样了。 png 格式固定的,动画特性应该也是后来加的。如果后缀名是 apng 也是支持的。