Jump to content

8-bit palette based TGA images support


Recommended Posts

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

Edited by raul315
...
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...