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

Method applyGravityOption

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

Source from the content-addressed store, hash-verified

125}
126
127func (p *Parser) applyGravityOption(ctx context.Context, o *options.Options, args []string) error {
128 return p.parseGravity(ctx, o, keys.Gravity, processing.CropGravityTypes, args...)
129}
130
131func (p *Parser) applyCropOption(ctx context.Context, o *options.Options, args []string) error {
132 if err := p.parsePositiveFloat(ctx, o, keys.CropWidth, args[0]); err != nil {

Callers 1

applyURLOptionMethod · 0.95

Calls 1

parseGravityMethod · 0.95

Tested by

no test coverage detected