mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-12 17:00:28 -07:00
refactor(docs)
This commit is contained in:
parent
7b82104e1d
commit
1aec365266
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
Small but featured Go library for blazing fast image processing based on [libvips](https://github.com/jcupitt/libvips) using C bindings.
|
Small but featured Go library for blazing fast image processing based on [libvips](https://github.com/jcupitt/libvips) using C bindings.
|
||||||
|
|
||||||
bimg is designed to be a small and efficient library with a specific but useful and generic set of features.
|
bimg is designed to be a small and efficient library with a specific but useful set of features.
|
||||||
It uses internally libvips, which is typically 4x faster than using the quickest ImageMagick and GraphicsMagick settings or Go native `image` package, and in some cases it's even 8x faster processing JPEG images.
|
It uses internally libvips, which is typically 4x faster than using the quickest ImageMagick and GraphicsMagick settings or Go native `image` package, and in some cases it's even 8x faster processing JPEG images.
|
||||||
bimg can read JPEG, PNG, WEBP, TIFF and Magick formats and it can output to JPEG, PNG and WEBP.
|
bimg can read JPEG, PNG, WEBP, TIFF and Magick formats and it can output to JPEG, PNG and WEBP.
|
||||||
|
|
||||||
It supports common [image transformation](#supported-image-operations) operations such as crop, resize, rotate... and conversion into multiple formats.
|
It supports common [image transformation](#supported-image-operations) operations such as crop, resize, rotate, flip or convert.
|
||||||
|
|
||||||
To getting start take a look to the [examples](#examples) and [programmatic API](https://godoc.org/github.com/h2non/bimg) documentation.
|
To get started take a look to the [examples](#examples) and [programmatic API](https://godoc.org/github.com/h2non/bimg) documentation.
|
||||||
|
|
||||||
bimg was heavily inspired in [sharp](https://github.com/lovell/sharp), a great node.js package for image processing build by [Lovell Fuller](https://github.com/lovell).
|
bimg was heavily inspired in [sharp](https://github.com/lovell/sharp), a great node.js package for image processing build by [Lovell Fuller](https://github.com/lovell).
|
||||||
|
|
||||||
|
|
@ -43,8 +43,8 @@ The [install script](https://github.com/lovell/sharp/blob/master/preinstall.sh)
|
||||||
- Rotate
|
- Rotate
|
||||||
- Flip
|
- Flip
|
||||||
- Extract area
|
- Extract area
|
||||||
- EXIF metadata (size, alpha channel, profile, orientation...)
|
|
||||||
- Format conversion
|
- Format conversion
|
||||||
|
- EXIF metadata (size, alpha channel, profile, orientation...)
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
|
|
@ -123,7 +123,7 @@ if bimg.NewImage(newImage).Type() == "png" {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Process
|
#### Options
|
||||||
|
|
||||||
```go
|
```go
|
||||||
options := bimg.Options{
|
options := bimg.Options{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue