diff --git a/libwebp/encode_test.go b/libwebp/encode_test.go index de75b5b..d257884 100644 --- a/libwebp/encode_test.go +++ b/libwebp/encode_test.go @@ -30,7 +30,7 @@ type testCase struct { } var testCases = []testCase{ - {"lossy", "source.jpg", options.EncodingOptions{Quality: 75, EncodingPreset: options.PresetPhoto, UseSharpYuv: true}}, + {"lossy", "source.jpg", options.EncodingOptions{Quality: 75, EncodingPreset: options.EncodingPresetPhoto, UseSharpYuv: true}}, {"lossless", "source.jpg", options.EncodingOptions{}}, {"bw", "bw-gopher.png", options.EncodingOptions{Quality: 75}}, } diff --git a/libwebp/options/options.go b/libwebp/options/options.go index 665094f..2410b08 100644 --- a/libwebp/options/options.go +++ b/libwebp/options/options.go @@ -1,12 +1,12 @@ package options const ( - PresetDefault EncodingPreset = iota - PresetPicture - PresetPhoto - PresetDrawing - PresetIcon - PresetText + EncodingPresetDefault EncodingPreset = iota + EncodingPresetPicture + EncodingPresetPhoto + EncodingPresetDrawing + EncodingPresetIcon + EncodingPresetText ) type (