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

Method fixSize

processing/fix_size.go:104–117  ·  view source on GitHub ↗
(c *Context)

Source from the content-addressed store, hash-verified

102}
103
104func (p *Processor) fixSize(c *Context) error {
105 switch c.PO.Format() {
106 case imagetype.WEBP:
107 return fixWebpSize(c.Img)
108 case imagetype.AVIF, imagetype.HEIC:
109 return fixHeifSize(c.Img)
110 case imagetype.GIF:
111 return fixGifSize(c.Img)
112 case imagetype.ICO:
113 return fixIcoSize(c.Img)
114 }
115
116 return nil
117}

Callers

nothing calls this directly

Calls 5

fixWebpSizeFunction · 0.85
fixHeifSizeFunction · 0.85
fixGifSizeFunction · 0.85
fixIcoSizeFunction · 0.85
FormatMethod · 0.65

Tested by

no test coverage detected