Versions in this module Expand all Collapse all v0 v0.2.0 Aug 9, 2017 Changes in this version + var ErrInvalidDimensions = errors.New("Expect either a height or width") + func SmartCrop(img image.Image, width, height int) (image.Rectangle, error) + type Analyzer interface + FindBestCrop func(img image.Image, width, height int) (image.Rectangle, error) + func NewAnalyzer() Analyzer + func NewAnalyzerWithCropSettings(cropSettings CropSettings) Analyzer + type Crop struct + Score Score + type CropSettings struct + DebugMode bool + InterpolationType resize.InterpolationFunction + Log *log.Logger + type Score struct + Detail float64 + Saturation float64 + Skin float64