Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Version 4.4.3 ImageSharp.UnknownImageFormatException #298

Closed
LucaBastelt opened this issue Apr 4, 2022 · 4 comments
Closed

New Version 4.4.3 ImageSharp.UnknownImageFormatException #298

LucaBastelt opened this issue Apr 4, 2022 · 4 comments
Assignees
Labels

Comments

@LucaBastelt
Copy link

Describe the bug
In one of our UnitTests we now get a SixLabors.ImageSharp.UnknownImageFormatException on parsing an msg file with a rtf formatted body.
With version 4.3.2 this was not an issue.

To Reproduce
Using the test msg file in 20 Testdokument Zeile 20.zip we use a simple new Storage.Message(MsgWithRtfBody);

Expected behavior
The expected behavior is that the created message object has a filled BodyRtf property

Stacktrace

SixLabors.ImageSharp.UnknownImageFormatException
Image cannot be loaded. Available decoders:
 - BMP : BmpDecoder
 - TGA : TgaDecoder
 - JPEG : JpegDecoder
 - GIF : GifDecoder
 - PNG : PngDecoder
 - Webp : WebpDecoder
 - TIFF : TiffDecoder
 - PBM : PbmDecoder

   at SixLabors.ImageSharp.Image.Load(Configuration configuration, Stream stream, IImageFormat& format)
   at SixLabors.ImageSharp.Image.Load(Configuration configuration, Stream stream)
   at SixLabors.ImageSharp.Image.Load(Stream stream)
   at MsgReader.Outlook.Storage.Attachment.SaveImageAsPng(Int32 bufferOffset)
   at MsgReader.Outlook.Storage.Attachment..ctor(Storage message, String storageName)
   at MsgReader.Outlook.Storage.Message.LoadAttachmentStorage(CFStorage storage, String storageName)
   at MsgReader.Outlook.Storage.Message.LoadStorage(CFStorage storage)
   at MsgReader.Outlook.Storage..ctor(String storageFilePath, FileAccess fileAccess)
   at MsgReader.Outlook.Storage.Message..ctor(String msgfile, FileAccess fileAccess)

Used Target Framework
net6.0

@Sicos1977 Sicos1977 added the bug label Apr 4, 2022
@Sicos1977 Sicos1977 self-assigned this Apr 4, 2022
@Sicos1977
Copy link
Owner

I'll try to look into it tomorrow. I had to replace Microsoft MUAI with ImageSharp to fix another problem. I did not have any issues with my testcases so I have to figure out where this is comming from.

@LucaBastelt
Copy link
Author

Thanks!

@Sicos1977
Copy link
Owner

I would suggest to revert back to previous version as a temporary solution, it should work fine with .net 6.0 but gives reference errors with lower .NET versions because of a bug in MUAI

@Sicos1977 Sicos1977 added wontfix and removed bug labels Apr 4, 2022
@Sicos1977 Sicos1977 added bug and removed wontfix labels Apr 4, 2022
Sicos1977 pushed a commit that referenced this issue Apr 4, 2022
@Sicos1977
Copy link
Owner

Fixed in the latest nuget package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants