diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d2e0b68 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 694bd60..58870b0 100644 --- a/README.md +++ b/README.md @@ -77,5 +77,4 @@ License ======= Copyright (c) 2012 Jan Schlicht -This software is released unter the ISC license. -The license text is at +Resize is released under an MIT style license. diff --git a/resize.go b/resize.go index 04c95d8..a9bd798 100644 --- a/resize.go +++ b/resize.go @@ -104,7 +104,7 @@ func Resize(w int, h int, img image.Image, interp InterpolationFunction) image.I } } c <- 1 - }(image.Rect(b.Min.X, b.Min.Y+i*(b.Dy())/4, b.Max.X, b.Min.Y+(i+1)*(b.Dy())/4), c) + }(image.Rect(b.Min.X, b.Min.Y+i*(b.Dy())/NCPU, b.Max.X, b.Min.Y+(i+1)*(b.Dy())/NCPU), c) } for i := 0; i < NCPU; i++ {