Dear Team,
I was facing issues while converting tiff to jpg as well as compressing the multi-tiff file occasionally. Below are the errors which I was facing.
-
Aspose.Imaging.CoreExceptions.ImageLoadException: Image loading failed. —> System.ArgumentException: An item with the same key has already been added.
-
Aspose.Imaging.CoreExceptions.FrameworkException: Index was outside the bounds of the array. —> System.IndexOutOfRangeException: Index was outside the bounds of the array.
We are not able to reproduce the same in every run. As I mentioned above that it happens occasionally.
Stack trace for "An item with the same key has already been added"
Error while compressing multi-tiff file with errorImage loading failed.
Aspose.Imaging.CoreExceptions.ImageLoadException: Image loading failed. —> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ? .(JpegMarkers , Int32 )
at ? .(StreamContainer , LoadOptions )
at ? .(StreamContainer , LoadOptions )
at Aspose.Imaging.Image.(StreamContainer , LoadOptions )
— End of inner exception stack trace —
Stack trace for "Index was outside the bounds of the array."
Error while compressing multi-tiff file with errorIndex was outside the bounds of the array.
Aspose.Imaging.CoreExceptions.FrameworkException: Index was outside the bounds of the array. —> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ? .(IObjectWithBounds )
at Aspose.Imaging.RasterImage..Process(Rectangle , Int32[] , Point , Point )
at ? .Process(Rectangle , Byte[] , Point , Point )
at ?? .(Byte[][]& , Rectangle )
at ?? .(Object , )
— End of inner exception stack trace —
I am currently using .Net Aspose.Imaging version is 4.0.0