mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 15:08:16 -07:00
feat(version): bump
This commit is contained in:
parent
c9001cd22c
commit
5d13fba8be
2 changed files with 24 additions and 9 deletions
31
README.md
31
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
package bimg
|
||||
|
||||
const Version = "0.1.12"
|
||||
const Version = "0.1.13"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue