Instagram_media

package
v0.0.0-...-b569ada Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

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