diff --git a/Pinta.Core/ImageFormats/TgaExporter.cs b/Pinta.Core/ImageFormats/TgaExporter.cs index 89576a3..4da5ce4 100644 --- a/Pinta.Core/ImageFormats/TgaExporter.cs +++ b/Pinta.Core/ImageFormats/TgaExporter.cs @@ -79,6 +79,8 @@ namespace Pinta.Core output.Write (this.imageDesc); } } + + private const string ImageIdField = "Created by Pinta"; // For now, we only export in uncompressed ARGB32 format. If someone requests this functionality, // we can always add more through an export dialog. @@ -89,7 +91,7 @@ namespace Pinta.Core try { TgaHeader header = new TgaHeader(); - header.idLength = 0; + header.idLength = (byte) (ImageIdField.Length + 1); header.cmapType = 0; header.imageType = 2; // uncompressed RGB header.cmapIndex = 0; @@ -102,6 +104,7 @@ namespace Pinta.Core header.pixelDepth = 32; header.imageDesc = 8; // 32-bit, lower-left origin, which is weird but hey... header.WriteTo (writer); + writer.Write(ImageIdField); byte[] data = surf.Data;