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

Method ShouldSkipFormatProcessing

processing/options.go:129–132  ·  view source on GitHub ↗
(inFormat imagetype.Type)

Source from the content-addressed store, hash-verified

127}
128
129func (po ProcessingOptions) ShouldSkipFormatProcessing(inFormat imagetype.Type) bool {
130 return slices.Contains(po.config.SkipProcessingFormats, inFormat) ||
131 options.SliceContains(po.Main(), keys.SkipProcessing, inFormat)
132}
133
134func (po ProcessingOptions) ShouldFlatten() bool {
135 return po.Has(keys.Background)

Callers 1

Calls 2

SliceContainsFunction · 0.92
MainMethod · 0.80

Tested by

no test coverage detected