@ -99,7 +99,7 @@ func main() {
dir, _ := filepath.Abs(*directory)
cmd := exec.Command("./tncmd.sh", filepath.Join(dir, e.Name()), "./thumbnails")
cmd := exec.Command("./tncmd.sh", filepath.Join(dir, e.Name()))
fmt.Println(cmd)
@ -1,2 +1,2 @@
#!/bin/bash
convert -thumbnail "140x200" -background white -alpha remove -crop 178x178+0+0 "$1"[0] "$2/${1%.pdf}.png"
convert -thumbnail "140x200" -background white -alpha remove -crop 178x178+0+0 "$1"[0] "${1%.pdf}.png"