Jump to content

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?

 

Link to comment
Share on other sites

Wait... are these .pdn files or .tga files?  I assume .tga.

 

If you're willing to use a Beta release, Paint.NET v4.2 has improved TGA support. It might help open the images.

https://forums.getpaint.net/topic/114544-paintnet-42-beta-build-7111/

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
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...