mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
refactor(resize)
This commit is contained in:
parent
cdade0c27f
commit
40dd19fa6a
8 changed files with 207 additions and 141 deletions
13
README.md
13
README.md
|
|
@ -15,13 +15,13 @@ bimg was heavily inspired in [sharp](https://github.com/lovell/sharp), a great n
|
|||
|
||||
- [libvips](https://github.com/jcupitt/libvips) v7.40.0+ (7.42.0+ recommended)
|
||||
- C compatible compiler such as gcc 4.6+ or clang 3.0+
|
||||
- Go 1.3+
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
go get gopkg.in/h2non/bimg.v0
|
||||
```
|
||||
Requires Go 1.3+
|
||||
|
||||
### libvips
|
||||
|
||||
|
|
@ -37,13 +37,22 @@ The [install script](https://github.com/lovell/sharp/blob/master/preinstall.sh)
|
|||
- Resize
|
||||
- Enlarge
|
||||
- Crop
|
||||
- Zoom
|
||||
- Rotate
|
||||
- Flip/Flop
|
||||
- Extract area
|
||||
- Extract image metadata (size, format, profile, orientation...)
|
||||
- Image conversion to multiple formats
|
||||
|
||||
## Performance
|
||||
|
||||
libvips is probably the faster open source solution for image processing.
|
||||
Here you can see some performance test comparisons for multiple scenarios:
|
||||
|
||||
- [libvips speed and memory usage](http://www.vips.ecs.soton.ac.uk/index.php?title=Speed_and_Memory_Use)
|
||||
- [sharp performance tests](https://github.com/lovell/sharp#the-task)
|
||||
|
||||
bimg performance tests coming soon!
|
||||
|
||||
## API
|
||||
|
||||
### Example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue