add support for jpeg & gif

This commit is contained in:
Norwin Roosen 2019-01-11 17:29:00 +01:00
parent f07d2de3a8
commit 33ba2d8eea
1 changed files with 9 additions and 7 deletions

16
main.go
View File

@ -2,18 +2,20 @@ package main
import (
"flag"
"fmt"
"image"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"log"
"net"
_ "net/http/pprof"
"os"
"runtime/pprof"
"strconv"
"time"
)
import "fmt"
import "image/png"
import "log"
import "os"
import "strconv"
import _ "net/http/pprof"
var err error
var cpuprofile = flag.String("cpuprofile", "", "Destination file for CPU Profile")
var image = flag.String("image", "", "Absolute Path to image")