Leaking resources


I wanted to convert psd to jpg format. Seem likes no problem with the conversion. But the result file is not good (empty jpg file). In addition, I used the while loop and checked Tack Manager, realized that resource is not released. See my code

static int psd2jpg(string inFile, string outFile)
using(FileStream fStream = new FileStream(inFile, FileMode.Open, FileAccess.ReadWrite,
var psd = Aspose.PSD.Image.Load(fStream);
psd.Save(outFile, new Aspose.PSD.ImageOptions.JpegOptions()
Quality = 100
return 0;
return 1;

static void Main(string[] args)
Aspose.PSD.License lic = new Aspose.PSD.License();
int ret = psd2jpg(@“D:\in.psd”, @“D:\out.jpg”);
while(true) { }

My input file: https://drive.google.com/file/d/1MJIrkdh-grQLfRRS7F92e1AyG5Uny9Uv/view



I have worked with source files and have been able to observe issue. A ticket with ID PSDNET-119 has been created in our issue tracking system for further investigate and resolve. This thread has been associated with this ticket, so that you can be automatically notified as soon as this issue is resolved.


The issues you have found earlier (filed as PSDNET-119) have been fixed in this update.