Added .jpeg to be accepted

This commit is contained in:
ZestyTS 2021-12-17 14:01:43 -08:00
parent 7799604b39
commit 5d4bbe5225
2 changed files with 5 additions and 4 deletions

View file

@ -2698,13 +2698,14 @@ namespace UWUVCI_AIO_WPF
{
png2tga.StartInfo.UseShellExecute = false;
png2tga.StartInfo.CreateNoWindow = true;
if(new FileInfo(inputPath).Extension.Contains("png"))
var extension = new FileInfo(inputPath).Extension;
if (extension.Contains("png"))
{
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "png2tga.exe");
}else if (new FileInfo(inputPath).Extension.Contains("jpg"))
}else if (extension.Contains("jpg") || extension.Contains("jpeg"))
{
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "jpg2tga.exe");
}else if (new FileInfo(inputPath).Extension.Contains("bmp"))
}else if (extension.Contains("bmp"))
{
png2tga.StartInfo.FileName = Path.Combine(toolsPath, "bmp2tga.exe");
}

View file

@ -1594,7 +1594,7 @@ namespace UWUVCI_AIO_WPF
else if(!INI)
{
dialog.Filter = "Images (*.png; *.jpg; *.bmp; *.tga) | *.png;*.jpg;*.bmp;*.tga";
dialog.Filter = "Images (*.png; *.jpg; *.bmp; *.tga; *jpeg) | *.png;*.jpg;*.bmp;*.tga;*jpeg";
}
else if(INI)
{