MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetImageProcessor

Method SetImageProcessor

internal/server/server.go:734–736  ·  view source on GitHub ↗

SetImageProcessor wires the image processor that the upload handler uses to derive thumbnail variants (TASK-878). Optional — without it uploads still succeed but no thumbnails are generated; the download handler's variant fallback path returns the original blob. The capabilities endpoint reflects wh

(p attachments.Processor)

Source from the content-addressed store, hash-verified

732// download handler's variant fallback path returns the original blob.
733// The capabilities endpoint reflects whichever processor is wired.
734func (s *Server) SetImageProcessor(p attachments.Processor) {
735 s.imageProcessor = p
736}
737
738// markUploadInFlight increments the in-flight counter for a content
739// hash. Returns a release func the caller MUST defer; the release

Callers 3

wireTestImageProcessorFunction · 0.80
serveCmdFunction · 0.80

Calls

no outgoing calls

Tested by 2

wireTestImageProcessorFunction · 0.64