I tried option 3 from above and now I get a different error, though still on the image.Save() step. The new error is “Index was outside the bounds of the array.” I’ve tried multiple AVIF files, all result in the same error. I’ve tried converting from AVIF to PNG and also get the same error. Below is the callstack:
Aspose.Imaging.CoreExceptions.ImageSaveException
HResult=0x80131500
Message=Image saving failed.
Source=Aspose.Imaging
StackTrace:
at Aspose.Imaging.Image.Save(String filePath, ImageOptionsBase options, Rectangle boundsRectangle)
at Aspose.Imaging.Image.Save(String filePath, ImageOptionsBase options)
at FNSBArcGISProAddin.PI.PropertyInspectorDockPaneView.<>c__DisplayClass18_0.<<BtnGenReport_Click>b__1>d.MoveNext() in C:\Users\roger.asbury\source\repos\gis-arcgispro-addin\FNSBArcGISProAddin\PropertyInspector\PropertyInspectorDockPane.xaml.cs:line 907
at FNSBArcGISProAddin.PI.PropertyInspectorDockPaneView.<BtnGenReport_Click>d__18.MoveNext() in C:\Users\roger.asbury\source\repos\gis-arcgispro-addin\FNSBArcGISProAddin\PropertyInspector\PropertyInspectorDockPane.xaml.cs:line 652
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location —
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at ArcGISPro.Program.Run()
at ArcGISPro.Program.Main(String[] args)
This exception was originally thrown at this call stack:
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=ztHK$iIa0fTb6rcRLIp_WPlBp0hzy(object)
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zLuX87ir_jb0Jka6VP8lLvIthnMBd(object)
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=z09Qh$LMVXy2zfcvFnh2jY5yde4LF()
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zHttYFF8Hbcf61FwETgO_hMzIITMMdjdsYXv2KBg=(object, uint)
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zF0bob$cB8DBzc9NkXBodZM8hMAZE(bool)
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zF0bob$cB8DBzc9NkXBodZM8hMAZE(bool)
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=z$U2ngHgsj30bZ7whRlEhCL2IjXsQf0URUgJQYittIlig(object[], System.Type[], System.Type[], object[])
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zCSishpiJUvlElPMQrOkm7ZUxoR$UCIp62GDly5c=(System.IO.Stream, string, object[], System.Type[], System.Type[], object[])
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zhxyM7oaSVD9dJudeuUHdmOE=(System.IO.Stream, string, object[])
dje_qWNQ73WMNUTWAD658FFYG5NLKB2XSK5YGVDB7JB6FNYMYE2MN4FUQ_ejd.#=zUJ066xlQF0PcipJ38aKSUQuOQ6iP(System.IO.Stream, string, object[])
…
[Call Stack Truncated]
Inner Exception 1:
ImageSaveException: Image export failed.
Inner Exception 2:
IndexOutOfRangeException: Index was outside the bounds of the array.