From 5d13fba8beaf44b2f42f42f9c510d09a2678d7bc Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Mon, 27 Apr 2015 11:50:47 +0200 Subject: [PATCH] feat(version): bump --- README.md | 31 +++++++++++++++++++++++-------- version.go | 2 +- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cda36be..6664d1f 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ Enable libvips traces (note that a lot of data will be written in stdout): VIPS_TRACE=1 ./app ``` -#### func DetermineImageTypeName +#### func DetermineImageTypeName ```go func DetermineImageTypeName(buf []byte) string @@ -292,10 +292,10 @@ func Shutdown() Thread-safe function to shutdown libvips. You could call this to drop caches as well. If libvips was already initialized, the function is no-op -#### func VipsDebug +#### func VipsDebugInfo ```go -func VipsDebug() +func VipsDebugInfo() ``` Output to stdout vips collected data. Useful for debugging @@ -314,10 +314,10 @@ type Angle int ```go const ( - D0 Angle = C.VIPS_ANGLE_D0 - D90 Angle = C.VIPS_ANGLE_D90 - D180 Angle = C.VIPS_ANGLE_D180 - D270 Angle = C.VIPS_ANGLE_D270 + D0 Angle = 0 + D90 Angle = 90 + D180 Angle = 180 + D270 Angle = 270 ) ``` @@ -410,7 +410,14 @@ Crop an image by width (auto height) ```go func (i *Image) Enlarge(width, height int) ([]byte, error) ``` -Enlarge the image from the by X/Y axis +Enlarge the image by width and height. Aspect ratio is maintained + +#### func (*Image) EnlargeAndCrop + +```go +func (i *Image) EnlargeAndCrop(width, height int) ([]byte, error) +``` +Enlarge the image by width and height with additional crop transformation #### func (*Image) Extract @@ -461,6 +468,13 @@ func (i *Image) Resize(width, height int) ([]byte, error) ``` Resize the image to fixed width and height +#### func (*Image) ResizeAndCrop + +```go +func (i *Image) ResizeAndCrop(width, height int) ([]byte, error) +``` +Resize the image to fixed width and height with additional crop transformation + #### func (*Image) Rotate ```go @@ -628,6 +642,7 @@ type VipsMemoryInfo struct { } ``` + #### func VipsMemory ```go diff --git a/version.go b/version.go index e6067e5..00d6ece 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package bimg -const Version = "0.1.12" +const Version = "0.1.13"