Documentation
¶
Index ¶
- Constants
- func CleanStr(s string) string
- func ExifCp(toolPath string, src, dst string) (string, error)
- func ExifTags() map[string]string
- func ExiftoolPath(toolPath string) (myPath string, err error)
- func ExiftoolPathFind() (myPath string, err error)
- func ExiftoolPathValidate(toolPath string) (myPath string, err error)
- func FillAspect(img *image.Image, aspect *model.Aspect) *image.Image
- func FixOrientation(img *image.Image, orientation int) error
- func GetAspectLab(i model.Image, aspect *model.Aspect) ([]*model.Lab, error)
- func GetImageCoverPartial(i model.Image, coverPartial *model.CoverPartial) (*image.Image, error)
- func GetImgAspectLab(img *image.Image, i model.Image, aspect *model.Aspect) []*model.Lab
- func GetImgAvgDist(img *image.Image, coverPartial *model.CoverPartial) float64
- func GetImgCoverPartial(img *image.Image, coverPartial *model.CoverPartial) *image.Image
- func GetImgPartialLab(img *image.Image, coverPartial *model.CoverPartial) []*model.Lab
- func GetOrientation(path string) (int, error)
- func GetPartialLab(i model.Image, coverPartial *model.CoverPartial) ([]*model.Lab, error)
- func LabAvg(labs []*model.Lab) *model.Lab
- func Md5sum(path string) (string, error)
- func NextAvailableFilename(myPath string) (string, error)
- func OpenImage(path string) (*image.Image, error)
- func OpenImg(i model.Image) (*image.Image, error)
- func Round(f float64) int
- func SliceContainsInt64(s []int64, a int64) bool
- func SliceContainsString(s []string, a string) bool
Constants ¶
View Source
const ( // size of partial square for down-sampling // before getting slice of lab data DATA_SIZE = 10 )
Variables ¶
This section is empty.
Functions ¶
func ExifCp ¶
ExifCp copies exif data from src image to dst image. It excludes Orientation tag because the orientation has been normalized in the processed images.
func ExiftoolPath ¶
func ExiftoolPathFind ¶
ExiftoolPathFind searches PATH for exiftool and returns the absolute path to it if found.
func ExiftoolPathValidate ¶
ExiftoolPathValidate validates the provided path to exiftool exists, and if so, returns the absolute path to it.
func FixOrientation ¶
FixOrientation modifies image in-place to match exif orientation data http://sylvana.net/jpegcrop/exif_orientation.html
func GetImageCoverPartial ¶
func GetImgAspectLab ¶
func GetImgAvgDist ¶
func GetImgAvgDist(img *image.Image, coverPartial *model.CoverPartial) float64
func GetImgCoverPartial ¶
func GetImgPartialLab ¶
func GetOrientation ¶
func GetPartialLab ¶
func NextAvailableFilename ¶
func SliceContainsInt64 ¶
func SliceContainsString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.