converting DNG image to jpeg failing #2021
Unanswered
icorderosss
asked this question in
General
Replies: 1 comment 1 reply
-
|
Can you share your file so I can give an answer why it is not supported? You can find my email on my profile in case you cannot share it publicly. |
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.
-
I'm getting this error when I try to mount my dng image
'Unsupported file format or not RAW file (DNG Path)
this is my code
`
public static string IOSImageConverter(ServiceTicketDocument doc)
{
string jpegPath = Path.ChangeExtension(doc.FileFullPath, ".jpeg");
//it fails on the using
using (var image = new MagickImage(doc.FileFullPath))
{
image.Format = MagickFormat.Jpeg;
using (MemoryStream ms = new MemoryStream())
{
image.Write(ms);
byte[] imgData = ms.ToArray();
doc.DocumentObject= imgData;
doc.DocumentObjectType="jpeg";
doc.FileFullPath = jpegPath;
doc.Update();
}
image.Write(jpegPath);
}
return doc.FileFullPath;
}
`
Beta Was this translation helpful? Give feedback.
All reactions