main
Simon Kellet 1 week ago
parent 61400ce031
commit 2f3c65ae9f
  1. 3
      glitch.go
  2. 6
      main.go
  3. 7
      util.go

@ -51,9 +51,6 @@ func glitchImage(inputFile string, outputFile string, shitSize int64, iterations
}
func copyImage(inputFile string, outputFile string) error {
// Ensure the output directory exists
makeOutputDir()
// Prepend the "output" directory to the output file
outputFilePath := filepath.Join("output", outputFile)

@ -6,6 +6,12 @@ import (
"strconv"
)
// TODO:
// - Flags instead of os.Args
// - Interactive UI
// - Check compatability with other image types (PNG etc)
// - better ffmpeg bindings (go package?)
const MAX_SIZE = 1000000
func main() {

@ -37,3 +37,10 @@ func clearOutputDir() {
check(err, "cannot remove directory")
return
}
func printUsage() {
fmt.Println("Usage: go run main.go <source-file> <number-of-copies> <shit-size> <iterations>")
fmt.Println(`
source-file:
`)
}

Loading…
Cancel
Save