Filesize

Return the filesize (bytes) of the image, if instance is initiated from an actual file.

Parameters

None

Return Values

string

Examples

package main

import (
    "fmt"
    "github.com/fishtailstudio/imgo"
)

func main() {
    img := imgo.Load("gopher.png")
    fmt.Println(img.Filesize())
}

Output:

34126

Last updated