uploadedfile

package
v0.0.0-...-fedf337 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewThumbFile(width, maxWidth, height, maxHeight int, name, shape, path, cropGravity string, cropWidth, cropHeight int, cropRatio string, quality int, desiredFormat string, noStore bool) *ThumbFile

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 (this *ThumbFile) GetNoStore() bool

func (*ThumbFile) GetOutputFormat

func (this *ThumbFile) GetOutputFormat(original *UploadedFile) thumbType.ThumbType

func (*ThumbFile) GetPath

func (this *ThumbFile) GetPath() string

func (*ThumbFile) Process

func (this *ThumbFile) Process(original *UploadedFile) error

func (*ThumbFile) SetPath

func (this *ThumbFile) SetPath(path string) error

func (*ThumbFile) String

func (this *ThumbFile) String() string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL