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

Method isImageTypePreferred

processing/processing.go:331–333  ·  view source on GitHub ↗

isImageTypePreferred checks if the given image type is in the list of preferred formats.

(imgtype imagetype.Type)

Source from the content-addressed store, hash-verified

329
330// isImageTypePreferred checks if the given image type is in the list of preferred formats.
331func (p *Processor) isImageTypePreferred(imgtype imagetype.Type) bool {
332 return slices.Contains(p.config.PreferredFormats, imgtype)
333}
334
335// isImageTypeCompatible checks if the given image type is compatible with the image properties.
336func (p *Processor) isImageTypeCompatible(

Callers 1

determineOutputFormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected