Update module path
This commit is contained in:
parent
53bce1cdc2
commit
cb5a8237c4
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
path: src/github.com/corona10/goimagehash
|
path: src/gitea.narnian.us/lordwelch/goimagehash
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: go get -t -v ./...
|
run: go get -t -v ./...
|
||||||
|
2
.github/workflows/ci_gomodule.yml
vendored
2
.github/workflows/ci_gomodule.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
path: src/github.com/corona10/goimagehash
|
path: src/gitea.narnian.us/lordwelch/goimagehash
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
16
README.md
16
README.md
@ -1,6 +1,6 @@
|
|||||||
![GitHub Action](https://github.com/corona10/goimagehash/workflows/goimagehash%20workflow/badge.svg)
|
![GitHub Action](https://gitea.narnian.us/lordwelch/goimagehash/workflows/goimagehash%20workflow/badge.svg)
|
||||||
[![GoDoc](https://godoc.org/github.com/corona10/goimagehash?status.svg)](https://godoc.org/github.com/corona10/goimagehash)
|
[![GoDoc](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash?status.svg)](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/corona10/goimagehash)](https://goreportcard.com/report/github.com/corona10/goimagehash)
|
[![Go Report Card](https://goreportcard.com/badge/gitea.narnian.us/lordwelch/goimagehash)](https://goreportcard.com/report/gitea.narnian.us/lordwelch/goimagehash)
|
||||||
|
|
||||||
# goimagehash
|
# goimagehash
|
||||||
> Inspired by [imagehash](https://github.com/JohannesBuchner/imagehash)
|
> Inspired by [imagehash](https://github.com/JohannesBuchner/imagehash)
|
||||||
@ -13,7 +13,7 @@ A image hashing library written in Go. ImageHash supports:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```
|
```
|
||||||
go get github.com/corona10/goimagehash
|
go get gitea.narnian.us/lordwelch/goimagehash
|
||||||
```
|
```
|
||||||
## Special thanks to
|
## Special thanks to
|
||||||
* [Haeun Kim](https://github.com/haeungun/)
|
* [Haeun Kim](https://github.com/haeungun/)
|
||||||
@ -73,10 +73,10 @@ func main() {
|
|||||||
**IMPORTANT**
|
**IMPORTANT**
|
||||||
goimagehash v1.0.0 does not have compatible with the before version for future features
|
goimagehash v1.0.0 does not have compatible with the before version for future features
|
||||||
|
|
||||||
- More flexible extended hash APIs are provided ([ExtAverageHash](https://godoc.org/github.com/corona10/goimagehash#ExtAverageHash), [ExtPerceptionHash](https://godoc.org/github.com/corona10/goimagehash#ExtPerceptionHash), [ExtDifferenceHash](https://godoc.org/github.com/corona10/goimagehash#ExtDifferenceHash))
|
- More flexible extended hash APIs are provided ([ExtAverageHash](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtAverageHash), [ExtPerceptionHash](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtPerceptionHash), [ExtDifferenceHash](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtDifferenceHash))
|
||||||
- New serialization APIs are provided([ImageHash.Dump](https://godoc.org/github.com/corona10/goimagehash#ImageHash.Dump), [ExtImageHash.Dump](https://godoc.org/github.com/corona10/goimagehash#ExtImageHash.Dump))
|
- New serialization APIs are provided([ImageHash.Dump](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ImageHash.Dump), [ExtImageHash.Dump](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtImageHash.Dump))
|
||||||
- [ExtImageHashFromString](https://godoc.org/github.com/corona10/goimagehash#ExtImageHashFromString), [ImageHashFromString](https://godoc.org/github.com/corona10/goimagehash#ImageHashFromString) is deprecated and will be removed
|
- [ExtImageHashFromString](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtImageHashFromString), [ImageHashFromString](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ImageHashFromString) is deprecated and will be removed
|
||||||
- New deserialization APIs are provided([LoadImageHash](https://godoc.org/github.com/corona10/goimagehash#LoadImageHash), [LoadExtImageHash](https://godoc.org/github.com/corona10/goimagehash#LoadExtImageHash))
|
- New deserialization APIs are provided([LoadImageHash](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#LoadImageHash), [LoadExtImageHash](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#LoadExtImageHash))
|
||||||
- Bits APIs are provided to measure actual bit size of hash
|
- Bits APIs are provided to measure actual bit size of hash
|
||||||
|
|
||||||
### v0.3.0
|
### v0.3.0
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"image/jpeg"
|
"image/jpeg"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/corona10/goimagehash"
|
"gitea.narnian.us/lordwelch/goimagehash"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"image/jpeg"
|
"image/jpeg"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/corona10/goimagehash"
|
"gitea.narnian.us/lordwelch/goimagehash"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/corona10/goimagehash
|
module gitea.narnian.us/lordwelch/goimagehash
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
_ "github.com/spakin/netpbm"
|
_ "github.com/spakin/netpbm"
|
||||||
|
|
||||||
"github.com/corona10/goimagehash"
|
"gitea.narnian.us/lordwelch/goimagehash"
|
||||||
_ "github.com/gen2brain/avif"
|
_ "github.com/gen2brain/avif"
|
||||||
_ "golang.org/x/image/bmp"
|
_ "golang.org/x/image/bmp"
|
||||||
_ "golang.org/x/image/tiff"
|
_ "golang.org/x/image/tiff"
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"image/draw"
|
"image/draw"
|
||||||
|
|
||||||
|
"gitea.narnian.us/lordwelch/goimagehash/etcs"
|
||||||
|
"gitea.narnian.us/lordwelch/goimagehash/transforms"
|
||||||
"github.com/anthonynsimon/bild/transform"
|
"github.com/anthonynsimon/bild/transform"
|
||||||
"github.com/corona10/goimagehash/etcs"
|
|
||||||
"github.com/corona10/goimagehash/transforms"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ToGray(img image.Image) *image.Gray {
|
func ToGray(img image.Image) *image.Gray {
|
||||||
|
Loading…
Reference in New Issue
Block a user