From 078915240a3b3d4aca383af0ca6ffcf443b5a33c Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Fri, 12 Jun 2015 10:32:34 +0100 Subject: [PATCH] feat(docs): update API docs --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e0c94e..9e3dba5 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ options := bimg.Options{ Crop: true, Quality: 95, Rotate: 180, - Interlace: 1, + Interlace: true, } 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 ``` +### Programmatic API + #### func DetermineImageTypeName ```go @@ -627,7 +629,7 @@ type Options struct { Flip bool Flop bool NoAutoRotate bool - Interlace int + Interlace bool Rotate Angle Gravity Gravity Watermark Watermark @@ -670,6 +672,7 @@ type Watermark struct { } ``` + ## Special Thanks - [John Cupitt](https://github.com/jcupitt)