From 3a211f6b6461e5ad78aaf28a9530b7386c5aee3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 11 Apr 2021 13:02:27 +0200 Subject: [PATCH] Rename option --- libwebp/encode_test.go | 2 +- libwebp/options/options.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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 (