#gif #webp #convert #lottie

bin+lib lottieconv

将 lottie 文件转换为 WEBP 或 GIF

7 个版本

0.3.0 2023 年 10 月 14 日
0.2.3 2023 年 8 月 27 日
0.2.2 2022 年 11 月 4 日
0.2.1 2022 年 10 月 7 日
0.1.2 2022 年 7 月 16 日

#813图像

41 每月下载量
3 个 crate 中使用 (2 直接)

MIT 许可证

32KB
716 代码行

lottieconv lottieconv 在 crates.io lottieconv 文档 许可证:MIT

该 crate 可以作为库将 lottie 文件转换为 webp 或 gif 文件,也可以作为二进制文件进行转换。

lottie2gif

这需要激活 clapgif 功能。

Convert lottie files GIF

Usage: lottie2gif [OPTIONS] <lottieFileName> [bgColor]

Arguments:
  <lottieFileName>  The location of the lottie file
  [bgColor]         The background color in hexadecimal format [default: 0]

Options:
      --non-transparent  Disable background transparency
  -o, --out <output>     The output file
  -h, --help             Print help information

lottie2webp

这需要激活 clapwebp 功能。

Convert lottie files WEBP

Usage: lottie2webp [OPTIONS] <lottieFileName>

Arguments:
  <lottieFileName>  The location of the lottie file

Options:
  -o, --out <output>  The output file
  -h, --help          Print help information

依赖关系

~0.4–4MB
~71K SLoC