Commit 77d90505 authored by Alessio Parma's avatar Alessio Parma

jpeg

parent c9dbca75
Pipeline #126615026 passed with stages
in 14 minutes and 59 seconds
......@@ -54,9 +54,9 @@ public static class FileFormats
public const string HTML = nameof(HTML);
/// <summary>
/// JPG.
/// JPEG.
/// </summary>
public const string JPG = nameof(JPG);
public const string JPEG = nameof(JPEG);
/// <summary>
/// MKV.
......
......@@ -105,7 +105,7 @@ public bool ValidateFileFormatForImageOptimization(string fileFormat, bool @thro
var supported = fileFormat switch
{
FileFormats.GIF => true,
FileFormats.JPG => true,
FileFormats.JPEG => true,
FileFormats.PNG => true,
FileFormats.SVG => true,
FileFormats.WEBP => true,
......
......@@ -41,7 +41,7 @@ public sealed class ConcreteOptimizationManager : IOptimizationManager
private static readonly IDictionary<string, string> s_lossyPlugins = new Dictionary<string, string>
{
[FileFormats.GIF] = "giflossy",
[FileFormats.JPG] = "mozjpeg",
[FileFormats.JPEG] = "mozjpeg",
[FileFormats.PNG] = "pngquant",
[FileFormats.SVG] = "svgo",
[FileFormats.WEBP] = "webp",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment