Răsfoiți Sursa

minor updates to readme, docs, travis-ci

Grigory Dryapak 7 ani în urmă
părinte
comite
416305ba3d
4 a modificat fișierele cu 9 adăugiri și 11 ștergeri
  1. 4 7
      .travis.yml
  2. 3 2
      README.md
  3. 1 1
      adjust.go
  4. 1 1
      doc.go

+ 4 - 7
.travis.yml

@@ -1,12 +1,9 @@
 language: go
 language: go
-
-sudo: false
-
 go:
 go:
-  - "1.7"
-  - "1.8"
-  - "1.9"
-  - "1.10"
+  - "1.7.x"
+  - "1.8.x"
+  - "1.9.x"
+  - "1.10.x"
 
 
 before_install:
 before_install:
   - go get github.com/mattn/goveralls
   - go get github.com/mattn/goveralls

+ 3 - 2
README.md

@@ -2,9 +2,10 @@
 
 
 [![GoDoc](https://godoc.org/github.com/disintegration/imaging?status.svg)](https://godoc.org/github.com/disintegration/imaging)
 [![GoDoc](https://godoc.org/github.com/disintegration/imaging?status.svg)](https://godoc.org/github.com/disintegration/imaging)
 [![Build Status](https://travis-ci.org/disintegration/imaging.svg?branch=master)](https://travis-ci.org/disintegration/imaging)
 [![Build Status](https://travis-ci.org/disintegration/imaging.svg?branch=master)](https://travis-ci.org/disintegration/imaging)
-[![Coverage Status](https://coveralls.io/repos/github/disintegration/imaging/badge.svg?branch=master)](https://coveralls.io/github/disintegration/imaging?branch=master)
+[![Coverage Status](https://coveralls.io/repos/github/disintegration/imaging/badge.svg?branch=master&service=github)](https://coveralls.io/github/disintegration/imaging?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/disintegration/imaging)](https://goreportcard.com/report/github.com/disintegration/imaging)
 
 
-Package imaging provides basic imaging processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
+Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
 
 
 All the image processing functions provided by the package accept any image type that implements `image.Image` interface
 All the image processing functions provided by the package accept any image type that implements `image.Image` interface
 as an input, and return a new image of `*image.NRGBA` type (32bit RGBA colors, not premultiplied by alpha).
 as an input, and return a new image of `*image.NRGBA` type (32bit RGBA colors, not premultiplied by alpha).

+ 1 - 1
adjust.go

@@ -51,7 +51,7 @@ func Invert(img image.Image) *image.NRGBA {
 
 
 // AdjustContrast changes the contrast of the image using the percentage parameter and returns the adjusted image.
 // AdjustContrast changes the contrast of the image using the percentage parameter and returns the adjusted image.
 // The percentage must be in range (-100, 100). The percentage = 0 gives the original image.
 // The percentage must be in range (-100, 100). The percentage = 0 gives the original image.
-// The percentage = -100 gives solid grey image.
+// The percentage = -100 gives solid gray image.
 //
 //
 // Examples:
 // Examples:
 //
 //

+ 1 - 1
doc.go

@@ -1,5 +1,5 @@
 /*
 /*
-Package imaging provides basic imaging processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
+Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
 
 
 All the image processing functions provided by the package accept any image type that implements image.Image interface
 All the image processing functions provided by the package accept any image type that implements image.Image interface
 as an input, and return a new image of *image.NRGBA type (32bit RGBA colors, not premultiplied by alpha).
 as an input, and return a new image of *image.NRGBA type (32bit RGBA colors, not premultiplied by alpha).