1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-03 10:43:58 +02:00
This commit is contained in:
DarthSim 2019-09-10 18:45:34 +06:00
parent c641e3ecd4
commit 4bd7b72c7a
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,7 @@
run:
skip-dirs:
- .tmp
linters:
fast: true
enable:
@ -20,3 +24,12 @@ issues:
- linters:
- staticcheck
text: "SA4000:"
- path: listen(_no)?_reuseport\.go
linters:
- typecheck
text: "declar"
- linters:
- typecheck
text: "could not import C"

View File

@ -7,4 +7,4 @@ fi
export CGO_LDFLAGS_ALLOW="-s|-w"
export CGO_CFLAGS_ALLOW="-Xpreprocessor"
golangci-lint run
golangci-lint run ./*.go

View File

@ -18,7 +18,7 @@ func icoData(data []byte) (out []byte, width int, height int, err error) {
// Ensure that image is in RGBA format
rgba := image.NewRGBA(ico.Bounds())
draw.Draw(rgba, ico.Bounds(), ico, image.ZP, draw.Src)
draw.Draw(rgba, ico.Bounds(), ico, image.Point{}, draw.Src)
width = rgba.Bounds().Dx()
height = rgba.Bounds().Dy()