Documentation ¶
Index ¶
- type ThumbFile
- func (this *ThumbFile) ComputeCrop(original *UploadedFile) (int, int, error)
- func (this *ThumbFile) ComputeHeight(original *UploadedFile) int
- func (this *ThumbFile) ComputeWidth(original *UploadedFile) int
- func (this *ThumbFile) GetNoStore() bool
- func (this *ThumbFile) GetOutputFormat(original *UploadedFile) thumbType.ThumbType
- func (this *ThumbFile) GetPath() string
- func (this *ThumbFile) Process(original *UploadedFile) error
- func (this *ThumbFile) SetPath(path string) error
- func (this *ThumbFile) String() string
- type UploadedFile
- func (this *UploadedFile) Clean()
- func (this *UploadedFile) Dimensions() (int, int, error)
- func (this *UploadedFile) FileSize() (int64, error)
- func (this *UploadedFile) GetFilename() string
- func (this *UploadedFile) GetHash() string
- func (this *UploadedFile) GetMime() string
- func (this *UploadedFile) GetOCRText() string
- func (this *UploadedFile) GetPath() string
- func (this *UploadedFile) GetThumbs() []*ThumbFile
- func (this *UploadedFile) IsGif() bool
- func (this *UploadedFile) IsJpeg() bool
- func (this *UploadedFile) IsPng() bool
- func (this *UploadedFile) SetFilename(filename string)
- func (this *UploadedFile) SetHash(hash string)
- func (this *UploadedFile) SetMime(mime string)
- func (this *UploadedFile) SetOCRText(text string)
- func (this *UploadedFile) SetPath(path string)
- func (this *UploadedFile) SetThumbs(thumbs []*ThumbFile)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThumbFile ¶
type ThumbFile struct { Name string Width int MaxWidth int Height int MaxHeight int Shape string CropGravity string CropWidth int CropHeight int CropRatio string Quality int Format string StoreURI string DesiredFormat string NoStore bool // contains filtered or unexported fields }
func NewThumbFile ¶
func (*ThumbFile) ComputeCrop ¶
func (this *ThumbFile) ComputeCrop(original *UploadedFile) (int, int, error)
func (*ThumbFile) ComputeHeight ¶
func (this *ThumbFile) ComputeHeight(original *UploadedFile) int
func (*ThumbFile) ComputeWidth ¶
func (this *ThumbFile) ComputeWidth(original *UploadedFile) int
func (*ThumbFile) GetNoStore ¶
func (*ThumbFile) GetOutputFormat ¶
func (this *ThumbFile) GetOutputFormat(original *UploadedFile) thumbType.ThumbType
func (*ThumbFile) Process ¶
func (this *ThumbFile) Process(original *UploadedFile) error
type UploadedFile ¶
type UploadedFile struct {
// contains filtered or unexported fields
}
func NewUploadedFile ¶
func NewUploadedFile(filename, path string, thumbs []*ThumbFile) (*UploadedFile, error)
func (*UploadedFile) Clean ¶
func (this *UploadedFile) Clean()
func (*UploadedFile) Dimensions ¶
func (this *UploadedFile) Dimensions() (int, int, error)
func (*UploadedFile) FileSize ¶
func (this *UploadedFile) FileSize() (int64, error)
func (*UploadedFile) GetFilename ¶
func (this *UploadedFile) GetFilename() string
func (*UploadedFile) GetHash ¶
func (this *UploadedFile) GetHash() string
func (*UploadedFile) GetMime ¶
func (this *UploadedFile) GetMime() string
func (*UploadedFile) GetOCRText ¶
func (this *UploadedFile) GetOCRText() string
func (*UploadedFile) GetPath ¶
func (this *UploadedFile) GetPath() string
func (*UploadedFile) GetThumbs ¶
func (this *UploadedFile) GetThumbs() []*ThumbFile
func (*UploadedFile) IsGif ¶
func (this *UploadedFile) IsGif() bool
func (*UploadedFile) IsJpeg ¶
func (this *UploadedFile) IsJpeg() bool
func (*UploadedFile) IsPng ¶
func (this *UploadedFile) IsPng() bool
func (*UploadedFile) SetFilename ¶
func (this *UploadedFile) SetFilename(filename string)
func (*UploadedFile) SetHash ¶
func (this *UploadedFile) SetHash(hash string)
func (*UploadedFile) SetMime ¶
func (this *UploadedFile) SetMime(mime string)
func (*UploadedFile) SetOCRText ¶
func (this *UploadedFile) SetOCRText(text string)
func (*UploadedFile) SetPath ¶
func (this *UploadedFile) SetPath(path string)
func (*UploadedFile) SetThumbs ¶
func (this *UploadedFile) SetThumbs(thumbs []*ThumbFile)
Click to show internal directories.
Click to hide internal directories.