Sign in to follow this  
Cad1959

Bad TGA Header

Recommended Posts

I received some .PDN Files and when I tried to open them in Paint.Net I got this message There was an error opening this file and when I went to see the details it said this 

 

Application version: paint.net 4.1.6

System.FormatException: bad TGA header

   at PaintDotNet.Data.TgaFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 376

   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

 

How can I fix this file so I can open it?

 

Share this post


Link to post
Share on other sites

If you can't open it with the 4.2 Beta, then attach the image here and we'll look into it. @null54 will be interested as well, he improved a bunch of TGA handling in 4.2.

Share this post


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.

Sign in to follow this