artomatix / artomatiximageloader Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
ArtomatixImageLoader/src_c/tiff.cpp
Line 618 in 5ea02ae
The latest version of this loader fails to extract the AIMG.dll in my test code (trivial C# console project loading an EXR image, installed via NuGet):
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Artomatix.ImageLoader.ImgLoader' threw an exception.
Source=ArtomatixImageLoader
StackTrace:
at Artomatix.ImageLoader.ImgLoader.getReadCallback(Stream s)
at Artomatix.ImageLoader.AImg..ctor(Stream stream, Boolean doDisposeStream)
at ConsoleApp1.Program.Main(String[] args) in C:\Users\darry\source\repos\ConsoleApp1\ConsoleApp1\Program.cs:line 13
Inner Exception 1:
TypeInitializationException: The type initializer for 'Artomatix.ImageLoader.NativeFuncs' threw an exception.
Inner Exception 2:
ArgumentException: Unable to load unmanaged module "C:\Users\darry\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\AIMG.dll": The operation completed successfully
Inner Exception 3:
Win32Exception: The operation completed successfully
I extracted the embedded DLL manually, but it then complains about missing native methods:
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Artomatix.ImageLoader.ImgLoader' threw an exception.
Source=ArtomatixImageLoader
StackTrace:
at Artomatix.ImageLoader.ImgLoader.getReadCallback(Stream s)
at Artomatix.ImageLoader.AImg..ctor(Stream stream, Boolean doDisposeStream)
at ConsoleApp1.Program.Main(String[] args) in C:\Users\darry\source\repos\ConsoleApp1\ConsoleApp1\Program.cs:line 13
Inner Exception 1:
TypeInitializationException: The type initializer for 'Artomatix.ImageLoader.NativeFuncs' threw an exception.
Inner Exception 2:
MissingMethodException: The unmanaged method "_AImgGetErrorDetails" does not exist
I tried to build it from source, but hunter complained about MSVC 2017 being unrecognized.
Would love to use this library, it seems very nice.
Seems the problem is in the c code, as it works fine with jpg, but I've only tested via the c# wrapper.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.