Encode screenshot as JPEG when it has the extension (#2982)
This commit is contained in:
parent
c5a09f123b
commit
1e65515f63
|
@ -1193,8 +1193,15 @@ namespace BizHawk.Client.EmuHawk
|
|||
using (var bb = Config.ScreenshotCaptureOsd ? CaptureOSD() : MakeScreenshotImage())
|
||||
{
|
||||
using var img = bb.ToSysdrawingBitmap();
|
||||
if (Path.GetExtension(path).ToUpper() == ".JPG")
|
||||
{
|
||||
img.Save(fi.FullName, ImageFormat.Jpeg);
|
||||
}
|
||||
else
|
||||
{
|
||||
img.Save(fi.FullName, ImageFormat.Png);
|
||||
}
|
||||
}
|
||||
|
||||
AddOnScreenMessage($"{fi.Name} saved.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue