isImageTypePreferred checks if the given image type is in the list of preferred formats.
(imgtype imagetype.Type)
| 329 | |
| 330 | // isImageTypePreferred checks if the given image type is in the list of preferred formats. |
| 331 | func (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. |
| 336 | func (p *Processor) isImageTypeCompatible( |
no outgoing calls
no test coverage detected