Return the mimetype of the image.
None
string
package main import ( "fmt" "github.com/fishtailstudio/imgo" ) func main() { img := imgo.Load("gopher.png") fmt.Println(img.Mimetype()) }
Outputs:
image/png
Last updated 2 years ago