6个版本
0.1.6 | 2022年3月5日 |
---|---|
0.1.5 | 2021年12月30日 |
0.1.4 | 2021年11月7日 |
0.1.3 | 2021年5月20日 |
0.1.1 | 2021年4月19日 |
#733 在 图像
每月40次下载
37KB
676 代码行
heic-to-dynamic-gnome-wallpaper 🌅 🎞 🌇
该项目提供了一个命令行工具,可以将存储在MacOS动态壁纸中的.heic
图像容器转换为GNOME中可用的动态壁纸定义。
支持基于太阳位置和时间的基础壁纸定义。尽管由于gnome壁纸的性质,基于太阳的壁纸将转换为基于时间的划分,近似于每个图像定义的太阳位置。
🧰 使用方法
由于大多数选项由图像信息决定,可调整的选项较少。您需要做的只是指定要转换的图像的路径。
可选地,您可以指定一个路径,其中包含从heic
提取的新图像的存储路径,包括GNOME的xml
规范。
heic-to-dynamic-gnome-wallpaper
USAGE:
heic-to-gnome-xml-wallpaper [OPTIONS] <IMAGE>
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
-d, --dir <DIR>
Specifies into which directory created images should be written to. Default is the parent directory of the
given image.
ARGS:
<IMAGE>
Image which should be transformed
📦 安装
目前,您需要安装一个有效的Rust工具链才能安装此工具,请参阅此处的说明,了解如何设置。
此外,您还需要以下库,通常随以下软件包一起提供:
libheif
libheif-dev
对于openSUSE用户
由于法律原因,默认仓库中的libheif
软件包不包含解码.heic
图像所需的h265编解码器。可以使用社区维护的packman
仓库。请查阅openSUSE Wiki了解如何使用它们的软件包。通过 cargo install
本地安装
$ cargo install heic-to-dynamic-gnome-wallpaper
本地手册
$ git clone https://github.com/jwuensche/heic-to-dynamic-gnome-wallpaper
$ cd heic-to-dynamic-gnome-wallpaper
$ cargo install --path .
$ # OR
$ cargo build --release
依赖关系
~11–23MB
~260K SLoC