JamieMason / ImageOptim-CLI

Make optimisation of images part of your automated build process
https://foldleft.io/image-tools
MIT License
3.45k stars 125 forks source link

Animated PNG Compression #195

Closed derpycoder closed 1 year ago

derpycoder commented 1 year ago

Description

This tool is a life saver, I love it. I am using it to compress all the files in the project.

However, when I try to compress APNG file, the compressor compresses only the first frame.

I'm trying to compress the fluent emoji icons!

Official Repo Animated PNGs Repo

Suggested Solution

Perhaps an extra command line argument saying --strip-animation or similar can be introduced for removal of animation.

Because by default if a png is animated, people would prefer animated png. (Reddit awards are also animated png and adoption is high.)

Help Needed

Currently I'm using TinyPng, to manually compress animated png.

JamieMason commented 1 year ago

Thanks @derpycoder. This would be something for the ImageOptim.app or ImageAlpha apps. This CLI is just a convenience to run those apps, which do the optimisation.