Mimetype
Return the mimetype of the image.

Parameters

None

Return Values

string

Examples

package main
​
import (
"fmt"
"github.com/fishtailstudio/imgo"
)
​
func main() {
img := imgo.Load("gopher.png")
fmt.Println(img.Mimetype())
}
Outputs:
image/png
Copy link
On this page
Parameters
Return Values
Examples