Support the ability to make images square

This commit is contained in:
Jacob Gunther
2024-07-13 11:45:16 -05:00
parent ae3203543a
commit e123b0e337
7 changed files with 22 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ func GetResultCacheKey(uuid, renderType string, opts *QueryParams) string {
values.Set("scale", strconv.FormatInt(int64(opts.Scale), 10))
values.Set("overlay", strconv.FormatBool(opts.Overlay))
values.Set("format", opts.Format)
values.Set("square", strconv.FormatBool(opts.Square))
return SHA256(values.Encode())
}