I am using the imagick library to resizing and cropping the images in a http handler. Which doesn\'t write anything in /tmp folder. But as i can a lot of these
Actually it should be included in the func main() not in the
func serveHTTP(). It is meant to be called once for a long running application and it solved my problem.
func main() {
imagick.Initialize()
defer imagick.Terminate()
myMux := http.NewServeMux()
myMux.HandleFunc("/", serveHTTP)
if err := http.ListenAndServe(":8085", myMux); err != nil {
logFatal("Error when starting or running http server: %v", err)
}
}
func serveHTTP(w http.ResponseWriter, r *http.Request) {
}