Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { URL string Base64 string // jpeg Binary *bytes.Buffer // jpeg Height int Width int Thumbnail *Image // contains filtered or unexported fields }
Image stands for an image object
func (*Image) CreateBase64 ¶
CreateBase64 creates and stores the Base64 string of the underlying image
func (*Image) CreateBinary ¶
CreateBinary creates and stores the byte representation of the image
func (*Image) CreateThumbnail ¶
CreateThumbnail shrinks the image to the specified sizes. Chainable.
func (*Image) URLIsImage ¶
URLIsImage checks whether the stored URL has png/jpg/jpeg suffix
Click to show internal directories.
Click to hide internal directories.