Skip to content

Commit

Permalink
exposed palette from GET endpoints (h2non#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibsharma authored and suntong committed Nov 29, 2023
1 parent 8fb1f26 commit 3c6d782
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func BimgOptions(o ImageOptions) bimg.Options {
Rotate: bimg.Angle(o.Rotate),
Interlace: o.Interlace,
Palette: o.Palette,
Speed: o.Speed,
}

if len(o.Background) != 0 {
Expand Down
6 changes: 0 additions & 6 deletions params.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ var paramTypeCoercions = map[string]Coercion{
"interlace": coerceInterlace,
"aspectratio": coerceAspectRatio,
"palette": coercePalette,
"speed": coerceSpeed,
}

func coerceTypeInt(param interface{}) (int, error) {
Expand Down Expand Up @@ -351,11 +350,6 @@ func coercePalette(io *ImageOptions, param interface{}) (err error) {
return err
}

func coerceSpeed(io *ImageOptions, param interface{}) (err error) {
io.Speed, err = coerceTypeInt(param)
return err
}

func buildParamsFromOperation(op PipelineOperation) (ImageOptions, error) {
var options ImageOptions

Expand Down

0 comments on commit 3c6d782

Please sign in to comment.