Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownMimeType = errors.New("ImageBerry: unknown image mimeType")
View Source
var SupportedMimeTypes = map[string]string{
"image/gif": "gif",
"image/png": "png",
"image/jpeg": "jpeg",
"image/jpg": "jpg",
"image/webp": "webp",
}
Functions ¶
This section is empty.
Types ¶
type ImageBerry ¶
type ImageBerry struct{}
func (*ImageBerry) DatePath ¶
func (m *ImageBerry) DatePath() string
func (*ImageBerry) GetExtension ¶
func (m *ImageBerry) GetExtension(img []byte) (string, error)
func (*ImageBerry) MakeThumbnail ¶
func (m *ImageBerry) MakeThumbnail(file []byte, thumbnailSize uint) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.