media_photo

package
v0.0.0-...-2422fc7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ImgFlipBoth = 3
View Source
const ImgFlipHorizontal = 1
View Source
const ImgFlipVertical = 2
View Source
const JPGQuality = 95

Variables

This section is empty.

Functions

This section is empty.

Types

type InstagramPhoto

type InstagramPhoto struct {
	Parent *Instagram_media.InstagramMedia
	// contains filtered or unexported fields
}

func NewInstagramPhoto

func NewInstagramPhoto(inputFile string, options map[string]interface{}) (ip *InstagramPhoto, err error)

type PhotoDetails

type PhotoDetails struct {
	media.Media
	// contains filtered or unexported fields
}

func NewPhotoDetails

func NewPhotoDetails(fileName string) (pd *PhotoDetails, err error)

func (*PhotoDetails) GetMaxAllowedWidth

func (pd *PhotoDetails) GetMaxAllowedWidth() int

func (*PhotoDetails) GetMinAllowedWidth

func (pd *PhotoDetails) GetMinAllowedWidth() int

func (*PhotoDetails) GetType

func (pd *PhotoDetails) GetType() string

func (*PhotoDetails) HasSwappedAxes

func (pd *PhotoDetails) HasSwappedAxes() bool

func (*PhotoDetails) IsHorizontallyFlipped

func (pd *PhotoDetails) IsHorizontallyFlipped() bool

func (*PhotoDetails) IsVerticallyFlipped

func (pd *PhotoDetails) IsVerticallyFlipped() bool

func (*PhotoDetails) Validate

func (pd *PhotoDetails) Validate(constraints media.Constraints) (err error)

Jump to

Keyboard shortcuts

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