1
0
mirror of https://github.com/fumiama/imago.git synced 2026-06-11 03:50:25 +08:00

增加samediff

This commit is contained in:
fumiama
2021-08-10 18:00:40 +08:00
parent 22632adb67
commit ae2d8ad09f
2 changed files with 6 additions and 6 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) (string, string)
### func Saveimg(r io.Reader, imgdir string, uid string) (string, string)
### 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)
Save image into imgdir with name like 编码后哈希.webp
Return value: status, dhash
### func Addimage(name string)