Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxImageHeight int
View Source
var MaxImageWidth int
Functions ¶
Types ¶
type Base64Data ¶
Base64Data represents a data URI in base64 format
type Image ¶
type Image struct { //URL to show to user URL string //Actual url to download ImageURL string //Show a 'animated' icon Animated AnimMode //Bitfield of ImageFlag* Flags ImageFlags //Override the server's mime type MIMEOverride string // Max(Width|Height) = thumbnailer.Mutator.Max(Width|Height)/MaxSize MaxSize float64 }
Pass this HTMLAble image down for more control inlining
type ImageFlags ¶
type ImageFlags uint8
const ( //Do not report a error if failure occures ImageFlagHideError ImageFlags = 1 << iota //Do not wrap with <img> tags ImageFlagSkipImg //Do not wrap with <a> tags ImageFlagSkipLink //Do not output anything on failure //If skipImg is set it will output a 1px x 1px transparent png ImageFlagSilent )
Click to show internal directories.
Click to hide internal directories.