GithubHelp home page GithubHelp logo

artomatix / artomatiximageloader Goto Github PK

View Code? Open in Web Editor NEW
1.0 18.0 1.0 6 MB

License: MIT License

C++ 20.75% C 1.03% CMake 2.61% C# 4.17% Python 1.42% Batchfile 0.01% Shell 0.09% HTML 69.09% JavaScript 0.14% XSLT 0.12% CSS 0.58%
pixel-formats tiff exr python native-libraries aimg

artomatiximageloader's Issues

AIMG.dll not found

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.