diff --git a/Dockerfile b/Dockerfile index e188e94..79007a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ COPY . $GOPATH/src/github.com/h2non/imaginary # Compile imaginary RUN go build -race -o bin/imaginary github.com/h2non/imaginary -# Run the outyet command by default when the container starts. +# Run the entrypoint command by default when the container starts. ENTRYPOINT ["bin/imaginary"] # Expose the server TCP port diff --git a/Gopkg.lock b/Gopkg.lock index 0c3b362..9303c1c 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -22,8 +22,8 @@ [[projects]] name = "gopkg.in/h2non/bimg.v1" packages = ["."] - revision = "1a5477aae5b261f4f8efb40cdeba8198b75c2238" - version = "v1.0.16" + revision = "8aff78e4ec8e8b66c753bafb27374488009cfb36" + version = "v1.0.17" [[projects]] name = "gopkg.in/h2non/filetype.v0" diff --git a/vendor/gopkg.in/h2non/bimg.v1/History.md b/vendor/gopkg.in/h2non/bimg.v1/History.md index 7eb5aae..c9a8fee 100644 --- a/vendor/gopkg.in/h2non/bimg.v1/History.md +++ b/vendor/gopkg.in/h2non/bimg.v1/History.md @@ -1,4 +1,13 @@ +## v1.0.17 / 2017-11-14 + + * refactor(resizer): remove fmt statement + * fix(type_test): use string formatting + * Merge pull request #207 from traum-ferienwohnungen/nearest-neighbour + * Add nearest-neighbour interpolation + * Merge pull request #203 from traum-ferienwohnungen/fix_icc_memory_leak + * Fix memory leak on icc_transform + ## v1.0.16 / 2017-10-30 * fix(travis): use install directive diff --git a/vendor/gopkg.in/h2non/bimg.v1/options.go b/vendor/gopkg.in/h2non/bimg.v1/options.go index 609de60..b357b77 100644 --- a/vendor/gopkg.in/h2non/bimg.v1/options.go +++ b/vendor/gopkg.in/h2non/bimg.v1/options.go @@ -41,12 +41,15 @@ const ( Bilinear // Nohalo interpolation value. Nohalo + // Nearest neighbour interpolation value. + Nearest ) var interpolations = map[Interpolator]string{ Bicubic: "bicubic", Bilinear: "bilinear", Nohalo: "nohalo", + Nearest: "nearest", } func (i Interpolator) String() string { diff --git a/vendor/gopkg.in/h2non/bimg.v1/type_test.go b/vendor/gopkg.in/h2non/bimg.v1/type_test.go index a5168b5..92ac4e5 100644 --- a/vendor/gopkg.in/h2non/bimg.v1/type_test.go +++ b/vendor/gopkg.in/h2non/bimg.v1/type_test.go @@ -68,7 +68,7 @@ func TestIsTypeSupported(t *testing.T) { for _, n := range types { if IsTypeSupported(n.name) == false { - t.Fatalf("Image type %#v is not valid", ImageTypes[n.name]) + t.Fatalf("Image type %s is not valid", ImageTypes[n.name]) } } } @@ -87,7 +87,7 @@ func TestIsTypeNameSupported(t *testing.T) { for _, n := range types { if IsTypeNameSupported(n.name) != n.expected { - t.Fatalf("Image type %#v is not valid", n.name) + t.Fatalf("Image type %s is not valid", n.name) } } } @@ -104,7 +104,7 @@ func TestIsTypeSupportedSave(t *testing.T) { for _, n := range types { if IsTypeSupportedSave(n.name) == false { - t.Fatalf("Image type %#v is not valid", ImageTypes[n.name]) + t.Fatalf("Image type %s is not valid", ImageTypes[n.name]) } } } @@ -124,7 +124,7 @@ func TestIsTypeNameSupportedSave(t *testing.T) { for _, n := range types { if IsTypeNameSupportedSave(n.name) != n.expected { - t.Fatalf("Image type %#v is not valid", n.name) + t.Fatalf("Image type %s is not valid", n.name) } } } diff --git a/vendor/gopkg.in/h2non/bimg.v1/version.go b/vendor/gopkg.in/h2non/bimg.v1/version.go index 79254a5..a30f9cc 100644 --- a/vendor/gopkg.in/h2non/bimg.v1/version.go +++ b/vendor/gopkg.in/h2non/bimg.v1/version.go @@ -1,4 +1,4 @@ package bimg // Version represents the current package semantic version. -const Version = "1.0.16" +const Version = "1.0.17" diff --git a/vendor/gopkg.in/h2non/bimg.v1/vips.go b/vendor/gopkg.in/h2non/bimg.v1/vips.go index e46b03f..25448b3 100644 --- a/vendor/gopkg.in/h2non/bimg.v1/vips.go +++ b/vendor/gopkg.in/h2non/bimg.v1/vips.go @@ -394,6 +394,7 @@ func vipsPreSave(image *C.VipsImage, o *vipsSaveOptions) (*C.VipsImage, error) { if int(err) != 0 { return nil, catchVipsError() } + C.g_object_unref(C.gpointer(image)) image = outImage }