mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
Added progressive jpeg functionality.
This commit is contained in:
parent
b6bc20df55
commit
0019d370e9
5 changed files with 8 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ The [install script](https://github.com/lovell/sharp/blob/master/preinstall.sh)
|
|||
- Enlarge
|
||||
- Crop
|
||||
- Rotate (with auto-rotate based on EXIF orientation)
|
||||
- Progressive
|
||||
- Flip (with auto-flip based on EXIF metadata)
|
||||
- Flop
|
||||
- Zoom
|
||||
|
|
@ -159,6 +160,7 @@ options := bimg.Options{
|
|||
Crop: true,
|
||||
Quality: 95,
|
||||
Rotate: 180,
|
||||
Interlace: 1,
|
||||
}
|
||||
|
||||
buffer, err := bimg.Read("image.jpg")
|
||||
|
|
@ -618,6 +620,7 @@ type Options struct {
|
|||
Flip bool
|
||||
Flop bool
|
||||
NoAutoRotate bool
|
||||
Interlace int
|
||||
Rotate Angle
|
||||
Gravity Gravity
|
||||
Watermark Watermark
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue