MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / TrimSmart

Method TrimSmart

processing/options.go:213–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213func (po ProcessingOptions) TrimSmart() bool {
214 return !po.Has(keys.TrimColor)
215}
216
217func (po ProcessingOptions) TrimColor() color.RGB {
218 return options.Get(po.Options, keys.TrimColor, color.Black)

Callers 1

trimMethod · 0.80

Calls 1

HasMethod · 0.45

Tested by

no test coverage detected