Documentation ¶
Index ¶
- Constants
- type InstagramPhoto
- type PhotoDetails
- func (pd *PhotoDetails) GetMaxAllowedWidth() int
- func (pd *PhotoDetails) GetMinAllowedWidth() int
- func (pd *PhotoDetails) GetType() string
- func (pd *PhotoDetails) HasSwappedAxes() bool
- func (pd *PhotoDetails) IsHorizontallyFlipped() bool
- func (pd *PhotoDetails) IsVerticallyFlipped() bool
- func (pd *PhotoDetails) Validate(constraints media.Constraints) (err error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.