mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 19:05:54 -07:00
feat(docs): update API docs
This commit is contained in:
parent
f1d1e22432
commit
078915240a
1 changed files with 5 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ options := bimg.Options{
|
||||||
Crop: true,
|
Crop: true,
|
||||||
Quality: 95,
|
Quality: 95,
|
||||||
Rotate: 180,
|
Rotate: 180,
|
||||||
Interlace: 1,
|
Interlace: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer, err := bimg.Read("image.jpg")
|
buffer, err := bimg.Read("image.jpg")
|
||||||
|
|
@ -247,6 +247,8 @@ Enable libvips traces (note that a lot of data will be written in stdout):
|
||||||
VIPS_TRACE=1 ./app
|
VIPS_TRACE=1 ./app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Programmatic API
|
||||||
|
|
||||||
#### func DetermineImageTypeName
|
#### func DetermineImageTypeName
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
@ -627,7 +629,7 @@ type Options struct {
|
||||||
Flip bool
|
Flip bool
|
||||||
Flop bool
|
Flop bool
|
||||||
NoAutoRotate bool
|
NoAutoRotate bool
|
||||||
Interlace int
|
Interlace bool
|
||||||
Rotate Angle
|
Rotate Angle
|
||||||
Gravity Gravity
|
Gravity Gravity
|
||||||
Watermark Watermark
|
Watermark Watermark
|
||||||
|
|
@ -670,6 +672,7 @@ type Watermark struct {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Special Thanks
|
## Special Thanks
|
||||||
|
|
||||||
- [John Cupitt](https://github.com/jcupitt)
|
- [John Cupitt](https://github.com/jcupitt)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue