Documentation ¶
Overview ¶
Package image is an image uploader
Package image is an image uploader
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader is an image downloader that is content aware
func (*Downloader) DownloadImage ¶
func (d *Downloader) DownloadImage(i *providerapi.Image) (*[]byte, error)
DownloadImage downloads an image in memory, converting it to png also reads the resolution and sets it on the image struct
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
Uploader is an image uploader to S3
func NewUploader ¶
NewUploader creates a new image uploader
func (*Uploader) UploadImage ¶
UploadImage uploads an image to s3
Click to show internal directories.
Click to hide internal directories.