mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
No need for JPEG in flags.
This commit is contained in:
@@ -18,7 +18,7 @@ namespace cicm_web
|
||||
|
||||
string flagname = Path.GetFileNameWithoutExtension(file);
|
||||
|
||||
foreach(string format in new[] {"png", "jpeg", "webp"})
|
||||
foreach(string format in new[] {"png", "webp"})
|
||||
{
|
||||
if(!Directory.Exists(Path.Combine("wwwroot/assets/flags/countries", format))) ;
|
||||
Directory.CreateDirectory(Path.Combine("wwwroot/assets/flags/countries", format));
|
||||
@@ -26,9 +26,6 @@ namespace cicm_web
|
||||
SKEncodedImageFormat skFormat;
|
||||
switch(format)
|
||||
{
|
||||
case "jpeg":
|
||||
skFormat = SKEncodedImageFormat.Jpeg;
|
||||
break;
|
||||
case "webp":
|
||||
skFormat = SKEncodedImageFormat.Webp;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user