# up2b-rs **Repository Path**: thepoy/up2b-rs ## Basic Information - **Project Name**: up2b-rs - **Description**: up2b-rs 镜像:https://github.com/thep0y/up2b-rs - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-15 - **Last Updated**: 2024-06-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![logo](docs/images/logo.png) # UP2B 图床管理器。 ## 1 介绍 此程序基于 [Tauri](https://github.com/tauri-apps/tauri) 开发,适配多平台(Windows、macOS 和 Linux桌面发行版)。 图片的管理和配置完全图形化,上传在支持图形化的同时还支持 CLI 。 与 PicGo 不同的是,由于核心业务逻辑是用 Rust 实现,暂时无法实现 API 插件功能,只能逐个适配。 写此程序的初衷就是觉得作为一个图床管理器,PicGo 的体积太大了,当然,这也是 Electron 程序的通病。 下面是与 PicGo 的体积对比: | | PicGo(2.3.1) | UP2B(0.3.0-alpha.4) | | ------------------ | ------------ | ------------------- | | Windows x64 exe | 60.6 MB | 2.97 MB | | Windows x64 msi | 不支持 | 3.1 MB | | macOS arm64 | 88.2 MB | 3.34 MB | | Linux x64 AppImage | 101 MB | 77.9 MB | | Linux x64 deb | 不支持 | 2.97 MB | ## 2 功能页面 ### 2.1 上传和图片列表 | 图片上传 | 图片列表 | | -------- | ---- | | ![上传](docs/images/upload.avif) | ![列表](docs/images/list.avif) | ### 2.2 设置 #### 2.2.1 基本设置 | 首页 | 选择图床 | | ---- | -------- | | ![设置](docs/images/settings-base.png) | ![选择图床](docs/images/settings-select.png) | #### 2.2.2 添加自定义图床 | 设置图床名 | 配置接口 | 保存配置后自动切换此图床 | | ---------- | -------- | ------------------------ | | ![设置](docs/images/settings-add-custom-1.png) | ![接口](docs/images/settings-add-custom-2.png) | ![接口配置后](docs/images/settings-add-custom-3.png) | ### 2.3 自动压缩(体验) 本程序的特色功能,可以将超过图床体积限制的图片压缩后上传,但此功能尚不稳定,还需改进,而且此功能会导致程序体积增加,考虑到不是所有用户都有此需求,故而我会为增加此功能的程序单独打包一个版本。 ![截屏2023-12-15 22.55.49](https://s2.loli.net/2023/12/15/5xbHVlOpwMmtrXe.png) ## 3 CLI Windows 平台不支持,原因见下面的“[已知问题](#41-windows-平台中无法使用-cli)”。 与 PicGo 类似,UP2B 也提供了一个上传图片的 CLI 命令,下面是帮助信息: ``` up2b 0.2.0 thepoy 图床管理客户端 USAGE: up2b [SUBCOMMAND] OPTIONS: -h, --help Print help information -V, --version Print version information SUBCOMMANDS: help Print this message or the help of the given subcommand(s) upload 上传一张或多张图片 ``` 只有一条有效命令`upload`。 你可以通过此命令在任何支持图片上传的文本编辑器中上传图片到图床,比如在 Typora 中如此设置: ![截屏2023-12-15 22.25.54](https://s2.loli.net/2023/12/15/i7gSByjX4FtmKxv.png) 就可以直接上传图片了。 ## 4 已知问题 ### 4.1 Windows 平台中无法使用 CLI 因为 Windows 中的程序被标记为 GUI,在启动时系统不会为 GUI 程序打开控制台,[#8305](https://github.com/tauri-apps/tauri/issues/8305)。 这个问题经过测试目前无法解决,正考虑是否专门为解决这个问题推出一个只支持上传图床的`up2b-lite`命令行工具。 ## 5 反馈交流 可以通过下面的方式进行反馈交流,遇到错误或提供建议时首先第一种,需要使用帮助时建议使用第二种方式。 - [issues](https://github.com/thep0y/up2b-rs/issues) - [电报群](https://t.me/up2b_rs)