Processor implements imagor.Processor interface
| 27 | |
| 28 | // Processor implements imagor.Processor interface |
| 29 | type Processor struct { |
| 30 | Filters FilterMap |
| 31 | FallbackFunc FallbackFunc |
| 32 | Detectors []imagor.Detector |
| 33 | DetectorProbeSize int |
| 34 | DisableBlur bool |
| 35 | DisableFilters []string |
| 36 | MaxFilterOps int |
| 37 | Logger *zap.Logger |
| 38 | Concurrency int |
| 39 | MaxCacheFiles int |
| 40 | MaxCacheMem int |
| 41 | MaxCacheSize int |
| 42 | MaxWidth int |
| 43 | MaxHeight int |
| 44 | MaxResolution int |
| 45 | MaxAnimationFrames int |
| 46 | MozJPEG bool |
| 47 | StripColorProfile bool |
| 48 | StripMetadata bool |
| 49 | AvifSpeed int |
| 50 | VectorDisableTargets int64 |
| 51 | Unlimited bool |
| 52 | Debug bool |
| 53 | |
| 54 | // Image cache settings |
| 55 | CacheSize int64 |
| 56 | CacheMaxWidth int |
| 57 | CacheMaxHeight int |
| 58 | CacheTTL time.Duration |
| 59 | CacheFormat imagor.BlobType // BlobTypeMemory (default, raw pixels), BlobTypeWEBP, BlobTypePNG |
| 60 | |
| 61 | disableFilters map[string]bool |
| 62 | cache *imageCache |
| 63 | cacheSF singleflight.Group |
| 64 | hasDcrawload bool |
| 65 | } |
| 66 | |
| 67 | // NewProcessor create Processor |
| 68 | func NewProcessor(options ...Option) *Processor { |
nothing calls this directly
no outgoing calls
no test coverage detected