Documentation ¶
Index ¶
- Constants
- type Anchor
- type Himage
- func (i *Himage) Move() *Himage
- func (i *Himage) RemoveOrigin(val bool) *Himage
- func (i *Himage) Resize(option Resize) *Himage
- func (i *Himage) Run() (*Himage, error)
- func (i *Himage) SetDestination(p string) *Himage
- func (i *Himage) SetName(name string) *Himage
- func (i *Himage) SetQuality(q interface{}) *Himage
- type Resize
Constants ¶
View Source
const ( // CHUNK_SIZE default file operation chunk size CHUNK_SIZE int = 32 * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor int
Anchor is the anchor point for image alignment. It has been taken from the repo github.com/disintegration/imaging for easy access to the package.
type Himage ¶
type Himage struct { Multipart *multipart.FileHeader File *os.File Error error Detail struct { Width int Height int Mime string Size int64 } // contains filtered or unexported fields }
Himage ..
func NewHimageWithMultipart ¶
func NewHimageWithMultipart(f *multipart.FileHeader) *Himage
NewHimageWithMultipart ..
Click to show internal directories.
Click to hide internal directories.