Hello,
Does paint.net *fully* support all TGA file format? It looks that 16 bit TGAs load fine whereas 8-bit RLE compressed color images with stored palette data will not be loaded with error message:
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at PaintDotNet.Data.TgaFileType.ExpandCompressedLine(MemoryBlock dst, Int32 dstIndex, TgaHeader& header, Stream input, Int32 width, Int32 y, Byte rleLeftOver, ColorBgra[] palette) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 533
at PaintDotNet.Data.TgaFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 455
at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158
Same file loads up OK in Gimp & Irfanview.
Targa8.tga