#raw #thumbnail #thumbnailer #replace #libopenraw

app miniaturo

RAW 图像缩略图生成器。旨在作为(主要不维护的)raw-thumbnailer 项目的直接替代品。

1 个不稳定版本

0.6.0 2023年12月26日

#300图像

GPL-3.0+

22KB
112 代码行

miniaturo

用 Rust 编写的 RAW 图像缩略图生成器。

此项目旨在作为(主要不维护的)raw-thumbnailer 项目的直接替代品。

⚠️ 注意: Miniaturo 需要 libopenraw 0.3,该版本于 2020 年 12 月发布。截至 2021 年初,此库版本尚未捆绑到不遵循滚动发布的发行版中。在这种情况下,您需要手动安装 libopenraw。

需求

构建需求

  • Rust
  • gcc 或 clang
  • pkg-config
  • libopenraw 0.3

安装

理想情况下,您可以通过发行版软件包获取此项目。

或者,您可以通过 cargo 从 crates.io 安装

cargo install miniaturo

或者自行构建

cargo build --release

实现说明

miniaturo 使用 libopenraw (0.3) 解析 RAW 图像,因此支持 libopenraw 所支持的所有相机格式。

缩略图的加载、调整大小和编码使用纯 Rust 通过 image-rs 完成。

项目名称

此项目的名称是 Esperanto 中的“缩略图”一词。

测试

要运行集成测试,首先下载测试图像

python3 tests/download-test-images.py

然后运行测试

cargo test

许可证

此项目根据 GPLv3 或更高版本许可。

Copyright (C) 2021—2023 Danilo Bargen

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://gnu.ac.cn/licenses/>.

依赖关系

~9-20MB
~232K SLoC