This commit is contained in:
Las Zenow 2012-09-14 00:34:13 +02:00
parent b96215b7ff
commit 11d24f2f20
4 changed files with 15 additions and 16 deletions

View file

@ -76,7 +76,7 @@ func storeImg(img []byte, title, extension string) (string, string) {
resize := append(strings.Split(RESIZE_CMD, " "), imgPath, imgPath)
cmd := exec.Command(resize[0], resize[1:]...)
cmd.Run()
imgPathSmall := ValidFileName(folder, title, "_small" + extension)
imgPathSmall := ValidFileName(folder, title, "_small"+extension)
resize = append(strings.Split(RESIZE_THUMB_CMD, " "), imgPath, imgPathSmall)
cmd = exec.Command(resize[0], resize[1:]...)
cmd.Run()