Documentation ¶
Index ¶
Constants ¶
View Source
const Crop = 1
View Source
const Expand = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstagramMedia ¶
type InstagramMedia struct { DefaultTmpPath *string Debug bool InputFile string MinAspectRatio *float64 MaxAspectRatio *float64 AllowNewAspectDeviation *bool HorCropFocus *int VerCropFocus *int BgColor color.Color Operation int TmpPath string Constraints media.Constraints OutputFile *string Details media.Media ForceTargetAspectRatio *float64 HasUserForceTargetAspectRatio bool CreateOutputFileFunc func(srcRect, dstRect geometry.Rectangle, outputCanvas geometry.Dimensions) (string, error) }
func NewInstagramMedia ¶
func NewInstagramMedia(createOutputFileFunc func(srcRect, dstRect geometry.Rectangle, outputCanvas geometry.Dimensions) (string, error), inputFile string, options map[string]interface{}) (im *InstagramMedia, err error)
func (*InstagramMedia) DeleteFile ¶
func (im *InstagramMedia) DeleteFile() (err error)
func (*InstagramMedia) GetFile ¶
func (im *InstagramMedia) GetFile() (path string, err error)
Click to show internal directories.
Click to hide internal directories.