Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2023 Changes in this version + var ErrInvalidHash = errors.New("invalid hash") + func DecodeImage(hashData []byte) (image.Image, error) + func DecodeImageWithCfg(hashData []byte, cfg DecodingCfg) (image.Image, error) + func EncodeImage(img image.Image) []byte + type DecodingCfg struct + BaseSize int + SaturationBoost float64 + type Hash struct + AAC []float64 + ADC float64 + AScale float64 + HasAlpha bool + IsLandscape bool + LAC []float64 + LCount int + LDC float64 + LScale float64 + Lx int + Ly int + PAC []float64 + PDC float64 + PScale float64 + QAC []float64 + QDC float64 + QScale float64 + func (h *Hash) Decode(data []byte, cfg *DecodingCfg) error + func (h *Hash) Encode() []byte + func (hash *Hash) Size(baseSize int) (w int, h int)