Added progressive jpeg functionality.

This commit is contained in:
Brant Fitzsimmons 2015-06-10 18:55:58 -04:00
parent b6bc20df55
commit 0019d370e9
5 changed files with 8 additions and 2 deletions

View file

@ -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