vseventer / sharp-cli

CLI for sharp.
MIT License
189 stars 20 forks source link

Proposal: Add `--animated` Global Option #79

Closed leafac closed 1 year ago

leafac commented 1 year ago

Hi @vseventer,

First, thanks for this project. I find it very handy.

Second, I propose that we add a --animated Global Option. It’s an option given by sharp and it amounts to the same as --pages -1, but it’s a bit more descriptive.

I found some references to such a flag in the codebase, but couldn’t get it work. I tried putting --animated in many places on the command and the only one that didn’t complain about an unknown parameter was sharp-cli -i animated.gif animated -o animated.webp, but even then the output file wasn’t animated.

Thanks in advance.

vseventer commented 1 year ago

The --animated flag only applies to the composite command currently. It makes sense to have this available top-level.

vseventer commented 1 year ago

Released in v4.1.0.