Documentation ¶
Index ¶
- Variables
- func MaxSize(w, h, maxW, maxH int) (int, int)
- func SetImageStreamed(img Imager, url string, w, h int)
- func SetImageStreamedContext(ctx context.Context, img Imager, url string, w, h int)
- func SetImageURL(img Imager, url string)
- func SetImageURLScaled(img Imager, url string, w, h int)
- func SetImageURLScaledContext(ctx context.Context, img Imager, url string, w, h int)
- func SizeToURL(urlstr string, w, h int) string
- func TmpPath() string
- type Imager
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = http.Client{ Timeout: 15 * time.Second, }
Functions ¶
func SetImageStreamed ¶ added in v0.1.0
SetImageStreamed is async and not cached.
func SetImageStreamedContext ¶ added in v0.1.0
SetImageStreamedContext is the ctx variant of SetImageStreamed.
func SetImageURL ¶ added in v0.1.0
func SetImageURLScaled ¶ added in v0.1.0
func SetImageURLScaledContext ¶ added in v0.1.0
Types ¶
Click to show internal directories.
Click to hide internal directories.