Skip to content

Instantly share code, notes, and snippets.

@ivanzoid
Last active January 12, 2019 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanzoid/f1dc7690fa1921b4e94f6e7c929cc781 to your computer and use it in GitHub Desktop.
Save ivanzoid/f1dc7690fa1921b4e94f6e7c929cc781 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func determineImageType(fileName string) (imageType string, err error) {
return runProgram1("identify", "-format", "%[m]", fmt.Sprintf("%v[0]", fileName))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment