-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
support for android. #9
Comments
I have no experience with android development, but you should be able to cross-compile libheif and its dependencies for ARM/ARM64. The ImageSharp.Heif Linux native binaries appear to be built from the following repository: https://github.com/hey-red/LibHeif-Build |
I have build scripts for |
@farindk that would be of great help. I only require it for decoding anyway. Thanks. |
@0xC0000054 I get the same error when trying to load a HEIF on iOS as well, "dll not found"? is that expected/it only works on windows? |
@farindk just checking if you have uploaded the scripts and i might have missed it. based on my previous comment, do you also have ios build scripts? |
It should work on any platform that provides a libheif binary. |
@0xC0000054 should I binaries be in a certain location for android and ios to work? There is a specific path for windows where the dll needs to be. |
The paths that are searched searched for native libraries would probably depend on the OS and/or .NET runtime. LibHeifSharp looks for a shared library named |
@0xC0000054 would it be possible if you could add support for android and ios in the library itself? I tried few things but I never got this working. Since you have already the system/steps sorted with the builds for linux and windows, it would be very helpful to get it working on android and ios as well. |
LibHeifSharp should already support android and ios. As far as I am aware there are no differences in the libheif API across platforms. I do not have the hardware or development experience with android or ios to do any testing on those platforms. |
@0xC0000054 I am unable to get the necessary dlls of libheif for ios and android at the moment. Tried using |
I posted Windows build instruction for If the |
I have added scripts to build Android libraries into the |
@farindk thanks, that worked out well. |
@0xC0000054 After getting the android build/lib I was able to get libheif-sharp working partially. I took the list of versions My program gets suck at I don't get any exception or no crahses/logs. this is my options: bool extractDepthImages = false;
bool extractThumbnailImages = false;
bool extractVendorAuxiliaryImages = false;
bool extractPrimaryImage = true;
string decoderId = null;
string chromaUpsampling = null;
bool listDecoders = true;
bool convertHdrToEightBit = true;
bool strict = true;
bool showHelp = false;
bool showVersion = true; I am using a Stream instead of a filepath for android. I pick a file, get the stream and then use that. This works out well with windows tho, using the same image I have placed both libde265 and libheif in the same dir and using the pre-built libs |
That sounds like a problem with the android libheif binaries, especially since it works on Windows. The The |
@0xC0000054 thats exactly what's happening.
On windows I can see |
After building libheif myself using libde256, I was able to get it working for android successfully. Cheers guys. Closing. |
Hi. I am trying to get ImageSharp work with HEIC and have tried hey-red/ImageSharp.Heif#3 and this library. I was wondering about how I can get ARM builds for libheif and the steps to make it work for android
The text was updated successfully, but these errors were encountered: