diff --git a/fsthttp/imageopto/imageopto.go b/fsthttp/imageopto/imageopto.go index bc825d7..b2ad73c 100644 --- a/fsthttp/imageopto/imageopto.go +++ b/fsthttp/imageopto/imageopto.go @@ -881,7 +881,7 @@ func (o *Options) QueryString() (string, error) { } if o.Contrast != 0 { - args = append(args, "constrast="+strconv.Itoa(o.Contrast)) + args = append(args, "contrast="+strconv.Itoa(o.Contrast)) } if o.Crop != nil { diff --git a/fsthttp/imageopto/imageopto_test.go b/fsthttp/imageopto/imageopto_test.go index 9ef37d2..fbb4f08 100644 --- a/fsthttp/imageopto/imageopto_test.go +++ b/fsthttp/imageopto/imageopto_test.go @@ -16,7 +16,7 @@ func TestOpts(t *testing.T) { {&Options{Region: RegionUsEast, Blur: NewBlurModePercentage(0.8)}, "region=us_east&blur=0.8p"}, {&Options{Region: RegionUsEast, Brightness: -50}, "region=us_east&brightness=-50"}, {&Options{Region: RegionUsEast, Bw: NewBWModeThreshold(10)}, "region=us_east&bw=threshold,10"}, - {&Options{Region: RegionUsEast, Contrast: -5}, "region=us_east&constrast=-5"}, + {&Options{Region: RegionUsEast, Contrast: -5}, "region=us_east&contrast=-5"}, {&Options{Region: RegionUsEast, Dpr: 3.2}, "region=us_east&dpr=3.2"}, {&Options{Region: RegionUsEast, Enable: EnableOptUpscale}, "region=us_east&enable=upscale"}, {&Options{Region: RegionUsEast, Format: FormatJPEGXL}, "region=us_east&format=jpegxl"},