TiffLibrary icon indicating copy to clipboard operation
TiffLibrary copied to clipboard

Exception

Open jhwheuer opened this issue 3 years ago • 3 comments

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?

jhwheuer avatar Apr 20 '22 17:04 jhwheuer

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.

Elissen avatar Jul 28 '22 11:07 Elissen

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

jhwheuer avatar Jul 29 '22 12:07 jhwheuer

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

jhwheuer avatar Jul 29 '22 14:07 jhwheuer