be less chatty
This commit is contained in:
parent
4e99c73274
commit
78d255a0ad
10
finstr.go
10
finstr.go
|
@ -304,10 +304,8 @@ func resizeAll(src string, dest string, w uint, h uint) {
|
|||
for _, f := range files {
|
||||
outfile := filepath.Join(dest, strings.TrimPrefix(f, src))
|
||||
if goutil.PathExists(outfile) {
|
||||
fmt.Println(f + " already converted")
|
||||
continue
|
||||
}
|
||||
fmt.Println("Converting " + f)
|
||||
file, err := os.Open(f)
|
||||
goutil.OptPanic(err)
|
||||
img, err := jpeg.Decode(file)
|
||||
|
@ -336,15 +334,12 @@ func resizeAll(src string, dest string, w uint, h uint) {
|
|||
}
|
||||
|
||||
func boundSize() {
|
||||
fmt.Println("medium images")
|
||||
fmt.Println("-------------")
|
||||
fmt.Println("making medium images")
|
||||
resizeAll(dirOrig(), dirMedium(), 0, 1080)
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
func makeThumbnails() {
|
||||
fmt.Println("thumbnails")
|
||||
fmt.Println("----------")
|
||||
fmt.Println("making thumbnails")
|
||||
var size uint
|
||||
if artsy {
|
||||
size = 300
|
||||
|
@ -352,7 +347,6 @@ func makeThumbnails() {
|
|||
size = 200
|
||||
}
|
||||
resizeAll(dirMedium(), dirSmall(), size, size)
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
type Flags struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user