Skip to content

Commit 68a82b5

Browse files
Consistant casing
1 parent fe2ea26 commit 68a82b5

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

src/ImageSharp.Web/Format.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@ public static class Format
1111
/// <summary>
1212
/// Gets the Bmp encoding format.
1313
/// </summary>
14-
public static FormatCommand Bmp { get; } = new(nameof(Bmp));
14+
public static FormatCommand Bmp { get; } = new("bmp");
1515

1616
/// <summary>
1717
/// Gets the Gif encoding format.
1818
/// </summary>
19-
public static FormatCommand Gif { get; } = new(nameof(Gif));
19+
public static FormatCommand Gif { get; } = new("gif");
2020

2121
/// <summary>
2222
/// Gets the Jpg encoding format.
2323
/// </summary>
24-
public static FormatCommand Jpg { get; } = new(nameof(Jpg));
24+
public static FormatCommand Jpg { get; } = new("jpg");
2525

2626
/// <summary>
2727
/// Gets the Png encoding format.
2828
/// </summary>
29-
public static FormatCommand Png { get; } = new(nameof(Png));
29+
public static FormatCommand Png { get; } = new("png");
3030

3131
/// <summary>
3232
/// Gets the Tga encoding format.
3333
/// </summary>
34-
public static FormatCommand Tga { get; } = new(nameof(Tga));
34+
public static FormatCommand Tga { get; } = new("tga");
3535

3636
/// <summary>
3737
/// Gets the WebP encoding format.
3838
/// </summary>
39-
public static FormatCommand WebP { get; } = new(nameof(WebP));
39+
public static FormatCommand WebP { get; } = new("webp");
4040
}

src/ImageSharp.Web/Resampler.cs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using SixLabors.ImageSharp.Processing;
5-
64
namespace SixLabors.ImageSharp.Web;
75

86
/// <summary>
@@ -11,47 +9,47 @@ namespace SixLabors.ImageSharp.Web;
119
public static class Resampler
1210
{
1311
/// <inheritdoc cref="KnownResamplers.Bicubic"/>
14-
public static ResamplerCommand Bicubic { get; } = new(nameof(Bicubic));
12+
public static ResamplerCommand Bicubic { get; } = new("bicubic");
1513

1614
/// <inheritdoc cref="KnownResamplers.Box"/>
17-
public static ResamplerCommand Box { get; } = new(nameof(Box));
15+
public static ResamplerCommand Box { get; } = new("box");
1816

1917
/// <inheritdoc cref="KnownResamplers.CatmullRom"/>
20-
public static ResamplerCommand CatmullRom { get; } = new(nameof(CatmullRom));
18+
public static ResamplerCommand CatmullRom { get; } = new("catmullrom");
2119

2220
/// <inheritdoc cref="KnownResamplers.Hermite"/>
23-
public static ResamplerCommand Hermite { get; } = new(nameof(Hermite));
21+
public static ResamplerCommand Hermite { get; } = new("hermite");
2422

2523
/// <inheritdoc cref="KnownResamplers.Lanczos2"/>
26-
public static ResamplerCommand Lanczos2 { get; } = new(nameof(Lanczos2));
24+
public static ResamplerCommand Lanczos2 { get; } = new("lanczos2");
2725

2826
/// <inheritdoc cref="KnownResamplers.Lanczos3"/>
29-
public static ResamplerCommand Lanczos3 { get; } = new(nameof(Lanczos3));
27+
public static ResamplerCommand Lanczos3 { get; } = new("lanczos3");
3028

3129
/// <inheritdoc cref="KnownResamplers.Lanczos5"/>
32-
public static ResamplerCommand Lanczos5 { get; } = new(nameof(Lanczos5));
30+
public static ResamplerCommand Lanczos5 { get; } = new("lanczos5");
3331

3432
/// <inheritdoc cref="KnownResamplers.Lanczos8"/>
35-
public static ResamplerCommand Lanczos8 { get; } = new(nameof(Lanczos8));
33+
public static ResamplerCommand Lanczos8 { get; } = new("lanczos8");
3634

3735
/// <inheritdoc cref="KnownResamplers.MitchellNetravali"/>
38-
public static ResamplerCommand MitchellNetravali { get; } = new(nameof(MitchellNetravali));
36+
public static ResamplerCommand MitchellNetravali { get; } = new("mitchellnetravali");
3937

4038
/// <inheritdoc cref="KnownResamplers.NearestNeighbor"/>
41-
public static ResamplerCommand NearestNeighbor { get; } = new(nameof(NearestNeighbor));
39+
public static ResamplerCommand NearestNeighbor { get; } = new("nearestneighbor");
4240

4341
/// <inheritdoc cref="KnownResamplers.Robidoux"/>
44-
public static ResamplerCommand Robidoux { get; } = new(nameof(Robidoux));
42+
public static ResamplerCommand Robidoux { get; } = new("robidoux");
4543

4644
/// <inheritdoc cref="KnownResamplers.RobidouxSharp"/>
47-
public static ResamplerCommand RobidouxSharp { get; } = new(nameof(RobidouxSharp));
45+
public static ResamplerCommand RobidouxSharp { get; } = new("robidouxsharp");
4846

4947
/// <inheritdoc cref="KnownResamplers.Spline"/>
50-
public static ResamplerCommand Spline { get; } = new(nameof(Spline));
48+
public static ResamplerCommand Spline { get; } = new("spline");
5149

5250
/// <inheritdoc cref="KnownResamplers.Triangle"/>
53-
public static ResamplerCommand Triangle { get; } = new(nameof(Triangle));
51+
public static ResamplerCommand Triangle { get; } = new("triangle");
5452

5553
/// <inheritdoc cref="KnownResamplers.Welch"/>
56-
public static ResamplerCommand Welch { get; } = new(nameof(Welch));
54+
public static ResamplerCommand Welch { get; } = new("welch");
5755
}

0 commit comments

Comments
 (0)