package main import ( "bytes" "git.gitorious.org/go-pkg/epubgo.git" "github.com/nfnt/resize" "image" "image/jpeg" "io" "io/ioutil" "log" "os" "regexp" "strings" "unicode/utf8" ) func GetCover(e *epubgo.Epub, title string) (string, string) { imgPath, smallPath := searchCommonCoverNames(e, title) if imgPath != "" { return imgPath, smallPath } /* search for img on the text */ exp, _ := regexp.Compile("