Skip to content

Commit

Permalink
fix: updated to latest triangle package #1 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov authored Apr 20, 2022
1 parent 4362915 commit 42a4b41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions core/facemask.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ package showerglass

import (
_ "embed"
"golang.org/x/image/draw"
"golang.org/x/sync/errgroup"
"image"
"io"
"sort"
"sync"

"golang.org/x/image/draw"
"golang.org/x/sync/errgroup"

"github.com/esimov/caire"
"github.com/esimov/pigo/core"
pigo "github.com/esimov/pigo/core"
"github.com/esimov/triangle"
)

Expand Down Expand Up @@ -254,7 +255,7 @@ func FaceMask(input io.Reader, opts ...Options) (image.Image, string, error) {

// Step 4: Run Triangle algorithm
img := &triangle.Image{*tp}
triangled, _, _, err := img.Draw(new, nil, func() {})
triangled, _, _, err := img.Draw(new, *tp, func() {})
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/disintegration/imaging v1.6.2 // indirect
github.com/esimov/caire v1.4.4 // indirect
github.com/esimov/pigo v1.4.5 // indirect
github.com/esimov/triangle v1.2.5 // indirect
github.com/esimov/triangle v1.3.0 // indirect
github.com/fogleman/gg v1.3.0 // indirect
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
golang.org/x/exp v0.0.0-20220317015231-48e79f11773a // indirect
Expand Down

0 comments on commit 42a4b41

Please sign in to comment.