1
0
mirror of https://github.com/fumiama/imago.git synced 2026-06-09 18:40:32 +08:00

修正uid与save add

This commit is contained in:
fumiama
2021-08-10 18:52:37 +08:00
parent 1856c27944
commit e5efa191af
2 changed files with 6 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ Get hamming distance between two dhash strings
Scan all images like 编码后哈希.webp
### func Pick(exclude []string) string
Pick a random image
### func Saveimgbytes(b []byte, imgdir string, uid string, force bool, samediff int) (string, string)
### func Saveimg(r io.Reader, imgdir string, uid string, samediff int) (string, string)
### func Saveimgbytes(b []byte, imgdir string, force bool, samediff int) (string, string)
### func Saveimg(r io.Reader, imgdir string, samediff int) (string, string)
Save image into imgdir with name like 编码后哈希.webp
Return value: status, dhash
### func Addimage(name string)