yigolden / TiffLibrary

C# library for decoding and encoding Tag Image File Format (TIFF) files.
MIT License
58 stars 16 forks source link

Exception #14

Open jhwheuer opened 2 years ago

jhwheuer commented 2 years ago

Since I upgraded to the latest version of the ImageSharp adapter v.0.6.65, I am getting an exception when executing

SixLabors.ImageSharp.Configuration.Default.Configure(new TiffLibrary.ImageSharpAdapter.TiffConfigurationModule());`

I am getting this exception:

An exception of type 'System.TypeLoadException' occurred in xxxx.exe but was not handled in user code
Method 'Decode' in type 'TiffLibrary.ImageSharpAdapter.TiffDecoder' from assembly 'TiffLibrary.ImageSharpAdapter, Version=0.6.0.0

Just updated the versions, no code changed... ImageSharp is at 2.1.0. What am I missing?

Elissen commented 1 year ago

I ran into the same issue, but it appears to only happen is you have SixLabors.ImageSharp installed as well with version 2.1.0 or newer - independent of what version of TiffLibrary.ImageSharpAdapter I use(even 0.5.252). I downgraded SixLabors.ImageSharp to 2.0.0 and this resolved the issue for me.

jhwheuer commented 1 year ago

I was afraid of that. Thank you Mark! I will let Jim @ ImageSharp know, maybe he's got some bandwidth to investigate...

jhwheuer commented 1 year ago

Maybe look at the list of breaking changes in ImageSharp? https://github.com/SixLabors/ImageSharp/releases/tag/v2.1.0 Might contain a hint