mirror of
https://github.com/h2non/imaginary.git
synced 2026-05-29 11:18:41 +02:00
feat(bimg): update to v1.0.17
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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"
|
||||
|
||||
+9
@@ -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
|
||||
|
||||
+3
@@ -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 {
|
||||
|
||||
+4
-4
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package bimg
|
||||
|
||||
// Version represents the current package semantic version.
|
||||
const Version = "1.0.16"
|
||||
const Version = "1.0.17"
|
||||
|
||||
+1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user