Good day!
I am creating a console app which converts DNG files to JPEG images.
I am using Apose.Imaging version 20.11.0.0 already applied the license.
Aspose.Imaging.CoreExceptions.ImageLoadException: ‘Image loading failed.’
DngException: Format not supported
My code below is from the examples you have in the documents
string sourceFiles = “D:/Projects/TestApps/convert-image/AzureFiles/IMG_0002.dng”;
string destPath = “D:/Projects/TestApps/convert-image/AzureFiles/IMG_0002.jpg”;
using (Aspose.Imaging.FileFormats.Dng.DngImage image = (Aspose.Imaging.FileFormats.Dng.DngImage)Image.Load(sourceFiles))
{
// Create an instance of JpegOptions class.
// convert and save to disk in Jpeg file format.
image.Save(destPath, new Aspose.Imaging.ImageOptions.JpegOptions());
}
Appreciate your help, thank you!