Skip to content

Commit

Permalink
add pre-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
carpedm20 committed Nov 7, 2014
1 parent 627de04 commit 37a7e17
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions 0_pre-processing.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package main

import (
"image"
"image/color"
"runtime"

"github.com/disintegration/imaging"
)

func main() {
// use all CPU cores for maximum performance
runtime.GOMAXPROCS(runtime.NumCPU())

// input files
files := []string{"01.jpg", "02.jpg", "03.jpg"}

for _, file := range files {
dstImage = imaging.Crop(file, image.Rect(50, 50, 100, 100))
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 37a7e17

Please sign in to comment.