.NET 4.6 Web App convert HEIC to JPEG #738
Unanswered
jwalker5006
asked this question in
Help
Replies: 1 comment 1 reply
-
This could be an issue with your file or an issue with how you create the byte array. Can you share your input image? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a web app that has a file upload form with an end goal of saving the uploaded file as a jpeg when the filetype is heic.
Because System.Drawing.Imaging does NOT support heic, and it appears Magick does (possible HEIC requires the libheif delegate library.) not sure how you would do this in a C# or VB.Net web app, or if I actually need the library for converting a uploaded file from HEIC to Jpeg.
What I am doing now is taking the uploaded file, convert to Byte() then put in a MemoryStream, then try and MagickImage it with a settings file where I tell Magick that the in file format is heic. ( had to specify the format to get past the "no decode delegate for this image format `' @ error/blob.c/BlobToImage/458" error).
Now I get a "Invalid input: No 'ftyp' box `' @ error/heic.c/IsHeifSuccess/134" which searching the Magick github I see no code reference to ftpy, but when I search the library that magick says is required, I do see references to this. But the libheif seems to be only c++ code, and have no clue how to use that library in a .NET web app.
Here is the code I am using to try and convert the heic byte data to jpeg byte data. Error occurs at the MagickImage line.
VB
C#
Beta Was this translation helpful? Give feedback.
All reactions