feature(thumbnails): add the ability to define custom image processors (#7409)
* feature(thumbnails): add the ability to define custom image processors * fix(ci): add exported member comment * docs(thumbnails): mention processors in readme * fix: codacy and code review feedback * fix: thumbnail readme markdown Co-authored-by: Martin <github@diemattels.at> --------- Co-authored-by: Martin <github@diemattels.at>
This commit is contained in:
@@ -38,7 +38,13 @@ func (s InMemory) BuildKey(r Request) string {
|
||||
parts := []string{
|
||||
r.Checksum,
|
||||
r.Resolution.String(),
|
||||
strings.Join(r.Types, ","),
|
||||
}
|
||||
|
||||
if r.Characteristic != "" {
|
||||
parts = append(parts, r.Characteristic)
|
||||
}
|
||||
|
||||
parts = append(parts, strings.Join(r.Types, ","))
|
||||
|
||||
return strings.Join(parts, "+")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user