1
Vote

Fail when trying to use .tga as output file type

description

I have a number of existing .tga files that I'm wanting to resize via batch processing. This is the error message:
Processing image 'C:\Users\username\Downloads\images\image001.tga' to 'C:\Users\username\Downloads\images\resized\image001.tga' failed!
System.NullReferenceException: Object reference not set to an instance of an object.
   at PaintDotNet.InternalFileType.<>c__DisplayClass6.<FinalSave>b__5(Object sender, ProgressEventArgs e) in D:\src\pdn\pdn_35x\src\Data\InternalFileType.cs:line 500
   at PaintDotNet.Data.TgaFileType.SaveTga(Surface input, Stream output, SavableBitDepths bitDepth, Boolean rleCompress, ProgressEventHandler progressCallback) in D:\src\pdn\pdn_35x\src\Data\TgaFileType.cs:line 747
   at PaintDotNet.Data.TgaFileType.OnFinalSave(Document input, Stream output, Surface scratchSurface, Int32 ditherLevel, SavableBitDepths bitDepth, PropertyBasedSaveConfigToken token, ProgressEventHandler progressCallback) in D:\src\pdn\pdn_35x\src\Data\TgaFileType.cs:line 693
   at PaintDotNet.InternalFileType.FinalSave(Document input, Stream output, Surface scratchSurface, Int32 ditherLevel, Int32 threshold, SavableBitDepths bitDepth, PropertyBasedSaveConfigToken token, ProgressEventHandler progressCallback, Double progressStart, Double progressEnd) in D:\src\pdn\pdn_35x\src\Data\InternalFileType.cs:line 503
   at PaintDotNet.InternalFileType.OnSaveT(Document input, Stream output, PropertyBasedSaveConfigToken token, Surface scratchSurface, ProgressEventHandler progressCallback) in D:\src\pdn\pdn_35x\src\Data\InternalFileType.cs:line 443
   at PaintDotNet.FileType`2.OnSave(Document input, Stream output, SaveConfigToken token, Surface scratchSurface, ProgressEventHandler callback) in D:\src\pdn\pdn_35x\src\Data\FileType`2.cs:line 42
   at PaintDotNet.FileType.Save(Document input, Stream output, SaveConfigToken token, Surface scratchSurface, ProgressEventHandler callback, Boolean rememberToken) in D:\src\pdn\pdn_35x\src\Data\FileType.cs:line 310
   at PDNBulkUpdater.OutputFile.Process(UpdateContext ctx, Dictionary`2 saveTokens, IProcessingEventListener events, Int32 index)
   at PDNBulkUpdater.Util.ProcessImages(UpdateContext ctx, Dictionary`2 saveTokens, IProcessingEventListener events)
I can open a tga file, resize it, and save it as tga no problem with just PDN itself. Bulk processing worked if I converted tga to jpg, or if I resized jpg, but any time I tried to use tga as the output filetype it gives the above error message. I tried playing around with the bulk processing options, even tried just giving it an input/output directory and a single file so it would basically just make a copy, but I get the error message every time.

comments