Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-imsto/imsto-client
Imsto RPC Client
https://github.com/go-imsto/imsto-client
golang grpc image rpc
Last synced: 6 days ago
JSON representation
Imsto RPC Client
- Host: GitHub
- URL: https://github.com/go-imsto/imsto-client
- Owner: go-imsto
- License: mit
- Created: 2019-10-23T16:33:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T07:04:20.000Z (10 months ago)
- Last Synced: 2024-04-25T08:24:57.241Z (10 months ago)
- Topics: golang, grpc, image, rpc
- Language: Go
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imsto-client
Imsto RPC ClientFeatures
--* `Store()` Save a image with binary data
* `Fetch()` Get a image from a public URI
* `MakeURL()` build a image uriAbout SizeOP
---### 正则表达式
> `(?P[scwh]\d{2,4}(?Px\d{2,4})?|orig)`
### 缩裁指令
* `s`: 按指定尺寸缩小,短边向内缩进
* `c`: 按指定尺寸缩小并裁切
* `w`: 按定指定宽度缩小,保持画面比例
* `h`: 按定指定高度缩小,保持画面比例### 尺寸格式
* 一个数字,表示正方形,如 120
* 两个数字中间有小写字母`x`, 120x160### 示例
* `s200`: 将原图缩小到 200x200,短边向内缩进
* `s160x120`: 将原图缩小到 200,短边向内缩进
* `c200`: 将原图按短边缩小到 200,并将长边裁切到 200(得到一个正方形)