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

Method applyMaxAnimationFramesOption

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

Source from the content-addressed store, hash-verified

511}
512
513func (p *Parser) applyMaxAnimationFramesOption(ctx context.Context, o *options.Options, args []string) error {
514 if err := p.IsSecurityOptionsAllowed(ctx); err != nil {
515 return err
516 }
517
518 return p.parsePositiveNonZeroInt(ctx, o, keys.MaxAnimationFrames, args...)
519}
520
521func (p *Parser) applyMaxAnimationFrameResolutionOption(ctx context.Context, o *options.Options, args []string) error {
522 if err := p.IsSecurityOptionsAllowed(ctx); err != nil {

Callers 1

applyURLOptionMethod · 0.95

Calls 2

Tested by

no test coverage detected