diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db3f6ba..4d49588 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout code uses: actions/checkout@v1 with: - path: src/github.com/corona10/goimagehash + path: src/gitea.narnian.us/lordwelch/goimagehash - name: Install run: go get -t -v ./... diff --git a/.github/workflows/ci_gomodule.yml b/.github/workflows/ci_gomodule.yml index dd876f4..e872b27 100644 --- a/.github/workflows/ci_gomodule.yml +++ b/.github/workflows/ci_gomodule.yml @@ -15,7 +15,7 @@ jobs: - name: Checkout code uses: actions/checkout@v1 with: - path: src/github.com/corona10/goimagehash + path: src/gitea.narnian.us/lordwelch/goimagehash - name: Test run: go test ./... diff --git a/README.md b/README.md index eb91d47..4fd2583 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -![GitHub Action](https://github.com/corona10/goimagehash/workflows/goimagehash%20workflow/badge.svg) -[![GoDoc](https://godoc.org/github.com/corona10/goimagehash?status.svg)](https://godoc.org/github.com/corona10/goimagehash) -[![Go Report Card](https://goreportcard.com/badge/github.com/corona10/goimagehash)](https://goreportcard.com/report/github.com/corona10/goimagehash) +![GitHub Action](https://gitea.narnian.us/lordwelch/goimagehash/workflows/goimagehash%20workflow/badge.svg) +[![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/gitea.narnian.us/lordwelch/goimagehash)](https://goreportcard.com/report/gitea.narnian.us/lordwelch/goimagehash) # goimagehash > Inspired by [imagehash](https://github.com/JohannesBuchner/imagehash) @@ -13,7 +13,7 @@ A image hashing library written in Go. ImageHash supports: ## Installation ``` -go get github.com/corona10/goimagehash +go get gitea.narnian.us/lordwelch/goimagehash ``` ## Special thanks to * [Haeun Kim](https://github.com/haeungun/) @@ -73,10 +73,10 @@ func main() { **IMPORTANT** 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)) -- 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)) -- [ExtImageHashFromString](https://godoc.org/github.com/corona10/goimagehash#ExtImageHashFromString), [ImageHashFromString](https://godoc.org/github.com/corona10/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)) +- 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/gitea.narnian.us/lordwelch/goimagehash#ImageHash.Dump), [ExtImageHash.Dump](https://godoc.org/gitea.narnian.us/lordwelch/goimagehash#ExtImageHash.Dump)) +- [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/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 ### v0.3.0 diff --git a/_examples/examples.go b/_examples/examples.go index 774e597..02619eb 100644 --- a/_examples/examples.go +++ b/_examples/examples.go @@ -5,7 +5,7 @@ import ( "image/jpeg" "os" - "github.com/corona10/goimagehash" + "gitea.narnian.us/lordwelch/goimagehash" ) func main() { diff --git a/_examples/load_and_dump.go b/_examples/load_and_dump.go index c4c8f68..b65cab5 100644 --- a/_examples/load_and_dump.go +++ b/_examples/load_and_dump.go @@ -7,7 +7,7 @@ import ( "image/jpeg" "os" - "github.com/corona10/goimagehash" + "gitea.narnian.us/lordwelch/goimagehash" ) func main() { diff --git a/go.mod b/go.mod index e458019..cdecf15 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/corona10/goimagehash +module gitea.narnian.us/lordwelch/goimagehash go 1.21 diff --git a/hashImage/main.go b/hashImage/main.go index 348cce2..2a6b128 100644 --- a/hashImage/main.go +++ b/hashImage/main.go @@ -12,7 +12,7 @@ import ( _ "github.com/spakin/netpbm" - "github.com/corona10/goimagehash" + "gitea.narnian.us/lordwelch/goimagehash" _ "github.com/gen2brain/avif" _ "golang.org/x/image/bmp" _ "golang.org/x/image/tiff" diff --git a/hashcompute.go b/hashcompute.go index 5c4452c..c48a92a 100644 --- a/hashcompute.go +++ b/hashcompute.go @@ -9,9 +9,9 @@ import ( "image" "image/draw" + "gitea.narnian.us/lordwelch/goimagehash/etcs" + "gitea.narnian.us/lordwelch/goimagehash/transforms" "github.com/anthonynsimon/bild/transform" - "github.com/corona10/goimagehash/etcs" - "github.com/corona10/goimagehash/transforms" ) func ToGray(img image.Image) *image.Gray {