Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2025 v1.0.0 Dec 23, 2024 Changes in this version + const HAlignLeft + const HAlignRight + const TrimByBottomRight + const TrimByTopLeft + const VAlignBottom + const VAlignTop + var DigestResultStorageHasher = ResultStorageHasherFunc(func(p Params) string { ... }) + var DigestStorageHasher = StorageHasherFunc(hexDigestPath) + var SizeSuffixResultStorageHasher = ResultStorageHasherFunc(func(p Params) string { ... }) + var SuffixResultStorageHasher = ResultStorageHasherFunc(func(p Params) string { ... }) + func Generate(p Params, signer Signer) string + func GeneratePath(p Params) string + func GenerateUnsafe(p Params) string + func Normalize(image string, safeChars SafeChars) string + type Filter struct + Args string + Name string + type Filters []Filter + type Params struct + CropBottom float64 + CropLeft float64 + CropRight float64 + CropTop float64 + Filters Filters + FitIn bool + HAlign string + HFlip bool + Hash string + Height int + Image string + IsBase64 bool + Meta bool + PaddingBottom int + PaddingLeft int + PaddingRight int + PaddingTop int + Params bool + Path string + Smart bool + Stretch bool + Trim bool + TrimBy string + TrimTolerance int + Unsafe bool + VAlign string + VFlip bool + Width int + func Apply(p Params, path string) Params + func Parse(path string) Params + type ResultStorageHasher interface + HashResult func(p Params) string + type ResultStorageHasherFunc func(p Params) string + func (h ResultStorageHasherFunc) HashResult(p Params) string + type SafeChars interface + ShouldEscape func(c byte) bool + func NewNoopSafeChars() SafeChars + func NewSafeChars(safechars string) SafeChars + type Signer interface + Sign func(path string) string + func NewDefaultSigner(secret string) Signer + func NewHMACSigner(alg func() hash.Hash, truncate int, secret string) Signer + type StorageHasher interface + Hash func(image string) string + type StorageHasherFunc func(image string) string + func (h StorageHasherFunc) Hash(image string) string