Fix #392 , The DibFileFormatHandler wasn't registered with the name which is stored in DataFormats.Dib

This commit is contained in:
Robin Krom 2022-03-23 21:59:18 +01:00
parent 5bc52e4d55
commit 2721ee06a2
No known key found for this signature in database
GPG key ID: BCC01364F1371490
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ namespace Greenshot.Editor.FileFormatHandlers
// For those images which are with Alpha, but the format doesn't support this, change it to 24bpp // For those images which are with Alpha, but the format doesn't support this, change it to 24bpp
if (imageFormat.Guid == ImageFormat.Jpeg.Guid && Image.IsAlphaPixelFormat(bitmap.PixelFormat)) if (imageFormat.Guid == ImageFormat.Jpeg.Guid && Image.IsAlphaPixelFormat(bitmap.PixelFormat))
{ {
var nonAlphaImage = ImageHelper.Clone(bitmap, PixelFormat.Format24bppRgb) as Bitmap; var nonAlphaImage = ImageHelper.Clone(bitmap, PixelFormat.Format24bppRgb);
try try
{ {
// Set that this file was written by Greenshot // Set that this file was written by Greenshot

View file

@ -41,7 +41,7 @@ namespace Greenshot.Editor.FileFormatHandlers
private const double DpiToPelsPerMeter = 39.3701; private const double DpiToPelsPerMeter = 39.3701;
private static readonly ILog Log = LogManager.GetLogger(typeof(DibFileFormatHandler)); private static readonly ILog Log = LogManager.GetLogger(typeof(DibFileFormatHandler));
private readonly IReadOnlyCollection<string> _ourExtensions = new[] { ".dib", ".format17" }; private readonly IReadOnlyCollection<string> _ourExtensions = new[] { ".dib", ".format17", ".deviceindependentbitmap" };
public DibFileFormatHandler() public DibFileFormatHandler()
{ {