Vitali Fedulov 2024-02-17 06:17:24 +01:00 committed by GitHub
parent 9fe8146963
commit 025ab4f57c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,8 @@ Major (semantic) versions have their own repositories and are mutually incompati
| 3 | [images3](https://github.com/vitali-fedulov/images3) | good, but less optimized |
| 1, 2 | [images](https://github.com/vitali-fedulov/images) | good, legacy code |
[Go doc](https://pkg.go.dev/github.com/vitali-fedulov/images4) - for full code documentation.
## Example of comparing 2 images
```go
@ -44,8 +46,6 @@ func main() {
## Main functions
Full code documentation: [Go doc](https://pkg.go.dev/github.com/vitali-fedulov/images4)
- `Open` decodes JPEG, PNG and GIF. But other types can be opened with third-party decoders, because the input to func 'Icon' is Golang image.Image. [Example fork](https://github.com/Pineapples27/images4) (not mine) expanded with support of WEBP images.
- `Icon` produces an image hash-like struct called "icon", which will be used for comparision. Side note: name "hash" is reserved for true hash tables in related package for faster comparison [imagehash](https://github.com/vitali-fedulov/imagehash).