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

Method applyExtendAspectRatioOption

options/parser/apply.go:42–44  ·  view source on GitHub ↗
(ctx context.Context, o *options.Options, args []string)

Source from the content-addressed store, hash-verified

40}
41
42func (p *Parser) applyExtendAspectRatioOption(ctx context.Context, o *options.Options, args []string) error {
43 return p.parseExtend(ctx, o, keys.PrefixExtendAspectRatio, args)
44}
45
46func (p *Parser) applySizeOption(ctx context.Context, o *options.Options, args []string) (err error) {
47 if err = p.ensureMaxArgs(ctx, "size", args, 7); err != nil {

Callers 1

applyURLOptionMethod · 0.95

Calls 1

parseExtendMethod · 0.95

Tested by

no test coverage detected