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

Method transformImage

processing/processing.go:362–374  ·  view source on GitHub ↗
(
	ctx context.Context,
	img *vips.Image,
	po ProcessingOptions,
	imgdata imagedata.ImageData,
	asAnimated bool,
)

Source from the content-addressed store, hash-verified

360}
361
362func (p *Processor) transformImage(
363 ctx context.Context,
364 img *vips.Image,
365 po ProcessingOptions,
366 imgdata imagedata.ImageData,
367 asAnimated bool,
368) error {
369 if asAnimated {
370 return p.transformAnimated(ctx, img, po)
371 }
372
373 return p.mainPipeline().Run(ctx, img, po, imgdata)
374}
375
376func (p *Processor) transformAnimated(
377 ctx context.Context,

Callers 1

ProcessImageMethod · 0.95

Calls 3

transformAnimatedMethod · 0.95
mainPipelineMethod · 0.95
RunMethod · 0.80

Tested by

no test coverage detected